View Single Post
Running with Crayons just released their latest version of Alfred which supports extensions.

On of the first things I did was to write an applescript which adds an action directly to OmniFocus.

If you would like to be able to do the same:

In the preferences, under extensions, add a new applescript with the following details:

Title: Add to OmniFocus
Description: Action! @Context ::Project #Start #Due $Duration //Note
Keyword: of
Options: Background checked, Action unchecked
Applescript:

Code:
on alfred_script(q)
tell application "OmniFocus"
	tell default document
		parse tasks with transport text q
	end tell
end tell
end alfred_script
The script uses the same syntax as the syntax which is used to send an email to OmniFocus
(Look under under OmniFocus Help for: processing mail messages into actions).

To add "Burn the body" directly to your inbox type:

"of Burn the body"

To add the action "Get milk" to the project "Groceries" with the context "Errands" type:

"of Get Milk @Errands ::Groceries"

Regards,

J.
Attached Thumbnails
Click image for larger version

Name:	Alfred to OmniFocus script.png
Views:	2744
Size:	47.9 KB
ID:	1986