Skip to content

Instantly share code, notes, and snippets.

@btobolaski
Created September 18, 2012 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btobolaski/3744880 to your computer and use it in GitHub Desktop.
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
<?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