Skip to content

Instantly share code, notes, and snippets.

@cdzombak
Created March 15, 2021 17:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdzombak/dd6616715354c0d512f710c0604f71c5 to your computer and use it in GitHub Desktop.
Save cdzombak/dd6616715354c0d512f710c0604f71c5 to your computer and use it in GitHub Desktop.
try
tell application id "com.culturedcode.ThingsMac" to activate
tell application "System Events"
tell process "Things"
click menu item "New Things Window" of menu "File" of menu bar item "File" of menu bar 1
click menu item "Quick Find…" of menu "Edit" of menu bar item "Edit" of menu bar 1
end tell -- Things
end tell -- System Events
on error e number n
display dialog "Error " & n & ": " & e
end try
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment