Skip to content

Instantly share code, notes, and snippets.

@trcook
Created October 13, 2015 13:42
Show Gist options
  • Save trcook/1661113ba58cf43b59f1 to your computer and use it in GitHub Desktop.
Save trcook/1661113ba58cf43b59f1 to your computer and use it in GitHub Desktop.
schedule one-off job in atrun on "os x"
# first, if not done already, enable atrun daemon.
# need to set:
# sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist
#Something like this into terminal
echo osascript -e \'tell application \"System Events\" \' -e \'keystroke \"q\" using command down\' -e \'end tell\'|at now + 1 minute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment