Skip to content

Instantly share code, notes, and snippets.

@flyingoctopus
Forked from brandonpittman/of.zsh
Created December 15, 2015 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flyingoctopus/a28863e47c3c995beaf0 to your computer and use it in GitHub Desktop.
Save flyingoctopus/a28863e47c3c995beaf0 to your computer and use it in GitHub Desktop.
A simple shell function to create tasks in OmniFocus
#!/bin/zsh
# If you use #'s for defer and start dates, you'll need to escape the #'s or
# quote the whole string.
function of () {
if [[ $# -eq 0 ]]; then
open -a "OmniFocus"
else
osascript <<EOT
tell application "OmniFocus"
parse tasks into default document with transport text "$@"
end tell
EOT
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment