Created
September 18, 2012 18:27
-
-
Save btobolaski/3744880 to your computer and use it in GitHub Desktop.
A simple template for launching a script on user login. Fill in name.of.LaunchAgent with the name of the launch agent(ex. com.example.script) and the fill in the location of the script into location/of/scipt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0/EN" "http://www.apple.com/DTDs/PropertList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>name.of.LaunchAgent</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>location/of/script</string> | |
</array> | |
<key>RunAtLoad</key> | |
<true /> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment