The plist file goes one of 3 places:
- System Tasks - /Library/LaunchDaemons/
- If Any User Logged In - /Library/LaunchAgents/
- Only If You Are Logged In - ~/Library/LaunchAgents/
The script can be anywhere, but it needs to be executable
chmod 755 --path to script file
In the LaunchAgent folder type the following...