Created
April 22, 2015 12:23
-
-
Save joebuhlig/c91ca9d5a47ab09d3525 to your computer and use it in GitHub Desktop.
An Omnifocus script for parsing the Inbox every 2 minutes.
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
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