Skip to content

Instantly share code, notes, and snippets.

@yaodong
Created January 10, 2015 16:16
Show Gist options
  • Save yaodong/3bce78aa3cb2a8784d3e to your computer and use it in GitHub Desktop.
Save yaodong/3bce78aa3cb2a8784d3e to your computer and use it in GitHub Desktop.
push todo from terminal to omnifocus
#! /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