Last active
August 4, 2020 08:13
-
-
Save brandonpittman/fd582d21eb00c12450b8 to your computer and use it in GitHub Desktop.
A simple shell function to create tasks in 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
#!/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 | |
} |
This is so useful, big thanks!
To make this work, you need one more line of code, right?
Call the function or nothing will happen...
of "$@"
@lters, this snippet is meant to be put into your zsh config so you can run of hello world
from the command line
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe it's in the manual.
It goes like this:
some task! @context ::project #defer #due //note