Last active
December 17, 2015 09:59
-
-
Save brandonpittman/5591714 to your computer and use it in GitHub Desktop.
This is an AppleScript to check OmniFocus' Inbox and notifies you if the "taskCount" has been exceeded using Sticky Notifications.app.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
Please change your folder and project names to whatever you use in OmniFocus. I have the acceptable task count at 1 but change this to whatever you feel comfortable with. | |
Author: Brandon Pittman | |
URL: http://brandonpittman.net | |
*) | |
set taskCount to 1 | |
tell application "OmniFocus" | |
tell the front document | |
set theCount to number of inbox tasks | |
if theCount ≥ taskCount then | |
tell application "System Events" to open location "sticky-notifications://note?title=OmniFocus&message=Clean%20out%20your%20inbox!" | |
end if | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment