Created
May 22, 2020 13:50
-
-
Save sneeu/19ffd4b6e764a4dca5dc5b7a2fb9d6f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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