Skip to content

Instantly share code, notes, and snippets.

@brandonpittman
Created December 4, 2017 06:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save brandonpittman/fb9cfb4f4bcb2e8ad2b5df0dadb69519 to your computer and use it in GitHub Desktop.
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