Skip to content

Instantly share code, notes, and snippets.

@dtschust
Created July 21, 2019 22:52
Show Gist options
  • Save dtschust/e28470a09cb88e111c62c2f74ba2613a to your computer and use it in GitHub Desktop.
Save dtschust/e28470a09cb88e111c62c2f74ba2613a to your computer and use it in GitHub Desktop.

Put in ~/Library/LaunchAgents.

launchctl load drew.screenshot.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>drew.screenshot</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/open</string>
<string>-a</string>
<string>screenshot</string>
</array>
<key>Nice</key>
<integer>1</integer>
<key>StartInterval</key>
<integer>1200</integer>
<key>StandardErrorPath</key>
<string>/Users/drew/launchd.err.txt</string>
<key>StandardOutPath</key>
<string>/Users/drew/launchd.txt</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment