To autostart the very excellent SickBeard and SABnzbd on OSX (Snow Leopard in my case) you need to create two plist files and then tell launchd to start them.
Note ~
means your home directory in Unix speak. And upper/lower case matters!
Edit the path to python, SickBeard, and SABnzbd as appropriate. In a terminal windows type which python
to find out the path to python. Hopefully you know where you installed the apps.
Save as ~/Library/LaunchAgents/com.sickbeard.sickbeard.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.sickbeard.sickbeard</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/python</string>
<string>/Applications/SickBeard/SickBeard.py</string>
<string>-q</string>
<string>-d</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Save as ~/Library/LaunchAgents/com.sabnzbd.SABnzbd.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.sabnzbd.SABnzbd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/open</string>
<string>-a</string>
<string>/Applications/SABnzbd.app</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Save as ~/Library/LaunchAgents/com.couchpotato.couchpotato.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.couchpotato.couchpotato</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/python</string>
<string>/Applications/CouchPotato.app/CouchPotato.py</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Make sure SickBeard, SABnzbd, CouchPotato are NOT running and then from a terminal window:
cd ~/Library/LaunchAgents
launchctl load com.sickbeard.sickbeard.plist
launchctl load com.sabnzbd.SABnzbd.plist
launchctl load com.couchpotato.couchpotato.plist
launchctl start com.sickbeard.sickbeard
launchctl start com.sabnzbd.SABnzbd
launchctl start com.couchpotato.couchpotato
Your apps are now probably running, they certainly will be after your next reboot.
If you ever want to stop them from starting after login
cd ~/Library/LaunchAgents
launchctl unload com.sickbeard.sickbeard.plist
launchctl unload com.sabnzbd.SABnzbd.plist
launchctl unload com.couchpotato.couchpotato.plist