Skip to content

Instantly share code, notes, and snippets.

@joebuhlig
Created April 22, 2015 12:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joebuhlig/c91ca9d5a47ab09d3525 to your computer and use it in GitHub Desktop.
Save joebuhlig/c91ca9d5a47ab09d3525 to your computer and use it in GitHub Desktop.
An Omnifocus script for parsing the Inbox every 2 minutes.
on idle
tell application "OmniFocus"
tell front document
set theInbox to every inbox task
if theInbox is not equal to {} then
repeat with n from 1 to length of theInbox
set currentTask to item n of theInbox
set taskName to name of currentTask
if taskName starts with "--" then
set taskName to ((characters 3 thru -1 of taskName) as string)
set newTask to parse tasks into with transport text taskName with as single task
delete currentTask
end if
end repeat
end if
end tell
end tell
return 120
end idle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment