Skip to content

Instantly share code, notes, and snippets.

@bradwright
Last active August 29, 2015 14:10
Show Gist options
  • Save bradwright/323a1198d27b98feef63 to your computer and use it in GitHub Desktop.
Save bradwright/323a1198d27b98feef63 to your computer and use it in GitHub Desktop.
Clear the flagged state of all available tasks
-- Unflag every available task in every context (it has to be assigned a context)
tell application "OmniFocus"
tell default document
set flagged of (every available task of every flattened context whose flagged is true) to false
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment