Started using Alfred recently and love the workflow feature. Found this great workflow that makes it very easy to add a new task to OmniFocus using Alfred. Beauty is that it uses Omnifocus’ built-in parsing syntax (the kind that is used for Omnifocus Mail Rules: @ for context, > for project, # for start or end time).
You can add a new task into the OmniFocus inbox using the syntax
“Action! @Context ::Project #Defer #Due $Duration //Note”
The “!” syntax is actually used for Flagging an Action.
So if you just enter text as in “todo myaction” it will NOT be flagged. But if you enter “todo myaction!” it will be flagged.
Also, using one instance of # will create a DEFER date, while two instances will create a DEFER DATE and then a DUE Date
So “myaction #today” creates a defer date of today
But “myaction #today #tomorrow” creates a defer date of today and a due date of tomorrow.
Example: Calling Alfred and typing in
todo Pick up Aspirin! @Errands ::Personal General #10/3/15 #10/4/15 $30m //Adding something to the note section of the task
When adding a ‘Hotkey’ to directly run the workflow you can even skip the ‘todo’. A great way to quickly add a new task.
I added some code to the AppleScript and a ‘Post Notification’ step to Dan’s great workflow so it now triggers a notification in the Notification Center with the task name that the new OmniFocus task was created. You can find the workflow here for download.