Skip to content

Instantly share code, notes, and snippets.

@jdsimcoe
Created February 20, 2015 16:47
Show Gist options
  • Save jdsimcoe/3e892cb87f30aaefd9b4 to your computer and use it in GitHub Desktop.
Save jdsimcoe/3e892cb87f30aaefd9b4 to your computer and use it in GitHub Desktop.
A script to launch the Things Quick Entry Panel when the app is closed.
set GTDAppName to "Things" global GTDAppName set GTDAppToUse to FindRunningGTDApp() if (GTDAppToUse is null) then set GTDAppToUse to "Things" end if on AppIsRunning(GTDAppName) tell application "System Events" return (count of (application processes whose name is GTDAppName)) is not 0 end tell end AppIsRunning on FindRunningGTDApp() if AppIsRunning(GTDAppName) then null else tell application "Things" activate show quick entry panel end tell end if return null end FindRunningGTDApp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment