Skip to content

Instantly share code, notes, and snippets.

@tjluoma
Created May 6, 2012 05:51
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 tjluoma/2618760 to your computer and use it in GitHub Desktop.
Save tjluoma/2618760 to your computer and use it in GitHub Desktop.
Launch OmniFocus every 90 minutes
<?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.launch-omnifocus</string>
<key>ProgramArguments</key>
<array>
<string>open</string>
<string>-g</string>
<string>-a</string>
<string>OmniFocus</string>
</array>
<key>StartInterval</key>
<integer>5400</integer>
</dict>
</plist>
@tjluoma
Copy link
Author

tjluoma commented May 6, 2012

save to $HOME/Library/LaunchAgents/com.tjluoma.launch-omnifocus.plist

Then either logout and log back in, or simply tell launchd to run it by typing this into Terminal.app:

launchctl load $HOME/Library/LaunchAgents/com.tjluoma.launch-omnifocus.plist

@tjluoma
Copy link
Author

tjluoma commented May 6, 2012

Note that this is designed to not cause OmniFocus to become active, just to make sure that it is launched. Otherwise it could take focus from whatever you were doing when it launches.

If you want OmniFocus to get "in your face" then remove the <string>-g</string> line.

If you want to adjust how often it runs, change '5400' to however many seconds you want this to run (5400 = 60 seconds times 90 -- aka "every 90 minutes".)

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