OmniFocus AppleScript Directory

Bring convenience and consistency to OmniFocus for Mac (Pro Edition) through the magic of AppleScript.

AppleScript Logo OmniFocus for Mac (Pro Edition) includes extensive support for AppleScript, a native OS X technology. This support makes automation and integration with other OS X apps possible, adding speed and convenience to OmniFocus workflows.

Even if you’ve never written a line of code, you can take advantage of this power by using scripts that others have written. The following is a hand-picked collection of AppleScripts that have been designed to work with OmniFocus. While we test everything that is posted here, we can’t guarantee that the scripts will work as designed in current or future releases of OmniFocus for Mac.

OmniFocus AppleScripts

app-icon-omnifocus-mac

The following scripts provide automation within OmniFocus. For an example of how to install and use AppleScript, check out the free Complete & Await Reply tutorial.

If you’re a Learn OmniFocus Member, check out the Using FastScripts with OmniFocus for Mac tutorial to learn how to conveniently access installed scripts using a menu bar menu and keyboard shortcuts and the recording of the Automating OmniFocus webinar to see some of them in action.

Auto-Parser — by Joe Buhlig
Include the project, context, flag state and more in the name of an action when you add it to the inbox (using the syntax described here) and, with some configuration, this clever script will automatically process your inbox for you.
[ script & download page ]

Complete & Await Reply — by Curt Clifton
Marks the select action(s) complete, then creates new actions(s) with a context of “Waiting”. The new action(s) are given a name of “Reply On:” followed by the name of the action(s) that were just completed.
[ script page | download ]

Daily Task Report — by Joe Buhlig
Creates a plain text file that contains a list of all the tasks you completed yesterday. You can run this script manually or, better yet, have Hazel take care of running it automatically each day.
script & download page ]

Export OmniFocus View To OmniOutliner — by Curt Clifton
Creates a new OmniOutliner document that contains the contents of whatever is currently visible in OmniFocus’ outline view.
[ script page | download ]

Focus in a New Window — by Dan Byler
Opens the project(s) associated with the selected action(s) in a new window. Very convenient if you’re in a context-based perspective and want to view or change a project without losing your place. The download also includes some other great scripts from Dan Byler.
[ script page | download ]

Populate Template Placeholders — by Curt Clifton
Highly recommend if you tend to perform similar projects over and over again. The script makes a copy of the selected Templates folder project and optionally prompts for placeholder text and dates. Watch the Project Templates in OmniFocus 2 for Mac video (Members only) for a complete tutorial.
[ script page | download ]

Prepare Task Completion Report — by Elmer Thomas
This script prompts you to select a time frame (e.g. today or this week) and then creates a new Evernote note listing all of the actions that were completed during this timeframe, grouped by project. It’s based on this script that was posted on Engadget.
[ script page | download ]

Total Time — by Dan Byler
Find that you tend to overcommit? This script can help by adding up the estimated time for all of the selected items. For example, if you had a Hot List persecutive showing all available actions that are due or flagged, you can use this script to see if it’s realistic to get all of these done today.
script page | download ]

Update Reviews — by Joe Buhlig
Changes the review dates of projects to match your next scheduled weekly, monthly or annual review. Modify the script to specify the day of the week you perform your weekly reviews, the day of the month you perform your monthly reviews and the month and day you perform your annuals reviews.
[ script & download page ]

Verify Next Actions Exist — by Curt Clifton
A parallel or sequential project without any actions is considered stalled. This script scans your database and adds “(missing next action)” to the title of any projects that are stalled.
[ script page | download ]

OS X Mail AppleScripts

app-icon-mail-mac

The following scripts are designed to be used with the OS X Mail app and provide additional integration between Mail and OmniFocus. To install these scripts, simply copy them to to the following folder: “~/Library/Scripts/Applications/Mail”, where “~” is your home folder.

OmniFocus Selected Mail Messages — by Jonathan Rentzsch
This script provides similar functionality to the OmniFocus Clip-o-Tron, except that the complete contents of the selected email are stored in the notes field along with a link to the email. If you run this script with multiple emails selected, one action will be created for each email you have selected.
[ script page | download ]

Writing Your Own Scripts

If you’re interested in writing your own scripts, a good place to start is the AppleScript page on Inside OmniFocus. Among other things, this page contains an overview of the scripting process and includes some sample code to help get you started.

Sharing Your Scripts

If you have an AppleScript that you’d like to share with the Learn OmniFocus community, drop us a line. We’ll be happy to put your script through its paces and, if it’s listed in this directory, we’ll make sure that you receive full credit.