Skip to content

Instantly share code, notes, and snippets.

@csreed
Created April 3, 2014 22:07
Show Gist options
  • Save csreed/161ad05bb15b84537072 to your computer and use it in GitHub Desktop.
Save csreed/161ad05bb15b84537072 to your computer and use it in GitHub Desktop.
AppleScript to flag tasks deferred until today
on run
tell application "OmniFocus"
set todayDate to current date
set todayDate's hours to 0
set todayDate's minutes to 0
set todayDate's seconds to 0
set tomorrowDate to todayDate + 1 * days
tell default document
set todayTasks to (flattened tasks where (defer date ≥ todayDate and defer date < tomorrowDate))
repeat with t in todayTasks
set t's flagged to true
end repeat
end tell
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment