Note: make sure its plain text if your using TextEdit
Code: Select all
<?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.random.sabnzbd</string>
<key>ProgramArguments</key>
<array>
<string>/Volumes/Files/SABnzbd/SABnzbd.py</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Code: Select all
<string>/Volumes/Files/SABnzbd/SABnzbd.py</string>
2. Save it as com.random.sabnzbd.plist to your desktop or where ever.
Note: Make sure there is no hidden .txt or any other ext when you save with TextEdit.
3. Open Terminal type:
Code: Select all
cp ~/Desktop/com.random.sabnzbd.plist ~/Library/LaunchAgents/
Code: Select all
launchctl load -w ~/Library/LaunchAgents/com.random.sabnzbd.plist