Skip to content

Instantly share code, notes, and snippets.

@sneeu
Created May 22, 2020 13:50
Show Gist options
  • Save sneeu/19ffd4b6e764a4dca5dc5b7a2fb9d6f4 to your computer and use it in GitHub Desktop.
Save sneeu/19ffd4b6e764a4dca5dc5b7a2fb9d6f4 to your computer and use it in GitHub Desktop.
on alfred_script(q)
set theName to (q)
set isRunning to false
tell application "System Events"
if exists process "OmniFocus" then
set isRunning to true
end if
end tell
if isRunning is false then
tell application "OmniFocus" to activate
end if
tell application "OmniFocus"
tell default document
make new inbox task with properties {name: q}
end tell
end tell
end alfred_script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment