Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SkillsToShow

macrumors regular
Original poster
Aug 23, 2008
106
1
California
I have this command that I run in the terminal that I want to run in the background and startup automatically when I turn my computer on. I have done a few google searches and it seems to be extremely complicated. What would be the best way to do this?

Here is the command I run in terminal:

Code:
cd '' && '/usr/local/bin/pythonw' '/Applications/Python 2.6/pyWHATauto-v1.14/Whatauto.py'
 
I actually want it to start up when I login. I googled Launch Agent and found this code:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>com.apple.TextEdit</string>
	<key>OnDemand</key>
	<false/>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/TextEdit.app/Contents/MacOS/TextEdit</string>
	</array>
</dict>
</plist>

Is this something I can use to startup on login? and run in the background? I have no programming knowledge so this kind of stuff is pretty new to me.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.