Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sort stuff by name |> status
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
tell application "System Events"
click menu item "By Name" of menu "Sort Once" of menu item "Sort Once" of menu "Organize" of menu bar item "Organize" of menu bar 1 of application process "OmniFocus"
click menu item "By Status" of menu "Sort Once" of menu item "Sort Once" of menu "Organize" of menu bar item "Organize" of menu bar 1 of application process "OmniFocus"
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment