The Omni Group

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Send an action from to OmniFocus Thread Tools Search this Thread Display Modes
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

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"


Attached Thumbnails
Click image for larger version

Name:	Alfred to OmniFocus script.png
Views:	1634
Size:	47.9 KB
ID:	1986  
  Reply With Quote
Really nice!

For those running alfred there is now an extension for running scripts from the scripts folder (~/Library/Scripts). Works really well with omnifocus.

You can get it here:
  Reply With Quote
How do you enable extensions. I have the newest version and don't see that option.
  Reply With Quote
Originally Posted by menza View Post
How do you enable extensions. I have the newest version and don't see that option.
You need the PowerPack. This requires the paid version, download from the Alfred web site. It's not available in the Mac App Store version of Alfred.
  Reply With Quote
I tried and i does not work for me.... I am running Lion 10.7.2 and latest version of Alfred.
  Reply With Quote
kewl! works like a charm.
Thank you,
  Reply With Quote
Works as advertised. Nifty - thanks.
  Reply With Quote
Thanks for the well- explained extension!

cheers, mat
  Reply With Quote
OmniFocus crashes if it isn't already running when I use this extension. Anyone else seeing this?
  Reply With Quote
I had the same behavior when OmniFocus was closed.
I found two non-optimal solutions which involve adding lines after "tell application":

Problem with this is that OmniFocus will always be brought to the front.

delay 1

Problem with this is that the "delay 1" is dependent on the system and is not guaranteed not to crash in the same way. It would be best to ensure that OmniFocus is ready to receive commands, but I don't know enough AppleScript or have the time to do further digging.
  Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
OmniFocus and Alfred 2 workflow wilsonng OmniFocus Extras 7 2013-05-08 08:52 AM
OmniFocus 2 Standard and Alfred gattaca OmniFocus 2 for Mac (Private Test) 13 2013-04-16 02:08 PM
Send to Omnifocus mcortina OmniFocus Extras 0 2011-07-11 10:04 AM
Send to Omnifocus? bcalloway OmniFocus for iPhone 2 2010-01-23 07:24 PM
Restoring deleted proj./action on Mac [A: Open OmniFocus backup on Mac, copy action.] MichaelG OmniFocus for iPhone 4 2009-08-31 09:52 PM

All times are GMT -8. The time now is 10:20 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.