Skip to content

Instantly share code, notes, and snippets.

@joebuhlig
joebuhlig / Parse Inbox.scpt
Created April 22, 2015 12:23
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)