-
-
Save flyingoctopus/a28863e47c3c995beaf0 to your computer and use it in GitHub Desktop.
A simple shell function to create tasks in OmniFocus
This file contains 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
#!/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