Skip to content

Instantly share code, notes, and snippets.

@tjluoma
Last active December 21, 2016 08:51
Show Gist options
  • Save tjluoma/c761e592a9fb435a6e93 to your computer and use it in GitHub Desktop.
Save tjluoma/c761e592a9fb435a6e93 to your computer and use it in GitHub Desktop.
Save this to ~/Library/LaunchAgents/com.tjluoma.ignitiononoroffatwork.plist
<?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.tjluoma.IgnitionAtWork</string>
<key>Program</key>
<string>/usr/local/bin/IgnitionAtWork.sh</string>
<key>QueueDirectories</key>
<array>
<string>/Users/jsmyth/Dropbox/IFTTT/Automatic/IgnitionAtWork/</string>
</array>
<key>RunAtLoad</key>
<false/>
</dict>
</plist>
@tjluoma
Copy link
Author

tjluoma commented Feb 12, 2015

  1. Be sure to change /usr/local/bin/IgnitionOnOrOffAtWork.sh to point to the shell script that you create.
  2. Change "/Users/jsmyth/Dropbox/IFTTT/Automatic/IgnitionOnOrOffAtWork/" to the full path to the folder which you will use. (note: you cannot use ~ or $HOME to refer to your home directory in launchd plists.

See also: https://gist.github.com/tjluoma/ad43de5abf3e6a657175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment