Created
January 10, 2015 16:16
-
-
Save yaodong/3bce78aa3cb2a8784d3e to your computer and use it in GitHub Desktop.
push todo from terminal to omnifocus
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
#! /usr/bin/osascript | |
on run arguments | |
if (count of arguments) > 0 then | |
tell application "OmniFocus" | |
tell default document | |
set result to make new inbox task with properties {name:arguments} | |
end tell | |
end tell | |
display notification "[+] " & arguments | |
else | |
do shell script "echo \"[ERR] Task name is required. Usage: todo {task name}\"" | |
end if | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment