
This support makes automation and integration with other OS X apps possible, adding speed and convenience to OmniFocus workflows. OmniFocus for Mac (Pro Edition) includes extensive support for AppleScript, a native OS X technology. Bring convenience and consistency to OmniFocus for Mac (Pro Edition) through the magic of AppleScript.
This past weekend I threw a perspective and an AppleScript into the mix. To move the first project selected to folder Bottom Level Folder which is located.A month or two ago I created a “Grocery Shopping” project template which I have been using in conjunction with a few contexts to get my shopping done a tad more efficiently. Moving An OmniFocus Project to A Designated Folder Using Applescript. Sure, there are simpler, cheaper and more specifically attuned apps out there to help you at the grocery store, but I bought Omni’s GTD app thrice over and I want to get my money’s worth out of it.This AppleScript is an adaptation by Brett Terpstra of a Safari tab list to OmniFocus script which itself was an adaptation of a Safari tab list to Evernote script love it This AppleScript saves a list of all the open tabs in your (frontmost) Chrome window to a new item in OmniFocus Perfect for keeping track of webpages to return to. Install Location: /Library/Scripts/Applications/OmniFocus/ Last Modified: 2019-10-02.Even at my least productive, I have always used OmniFocus to organize my shopping lists. Requires: OmniFocus Pro 2.
This and other carefully-selected AppleScripts can be found in our OmniFocus AppleScript Directory.Setup sync after import has completed. The instructions for installing and making use of it are essentially the same in OmniFocus 3 as they were in OmniFocus 2. The Complete & Await Reply AppleScript continues to work in OmniFocus 3.

In the future we’re going to duplicate the “Grocery Shopping” project and make it an active project. Simply set your Project Filter to All Projects and you’ll see your dropped folder and on hold project. Right click the “Templates” folder and set it to “Dropped”.Be sure to bring your View Bar up in OmniFocus, as your project and folder will likely disappear once you change their status. Right click the “Grocery Shopping” project and set it to “On Hold”. Create a new Single Actions project in the “Templates” folder called “Grocery Shopping”.

And still some other ingredients I may need to seek out a farmer’s market, or head to the flagship Whole Foods here in Austin, or go to the other big chain here in Texas. I buy most of my food at a big national chain, but the things I really care about (produce, coffee, etc.) I get at a fancy-pants (-ish) health food store. I like to keep this nested in a Context called “Errands,” but you can keep it wherever you like.This next bit may seem like overkill, but I can’t be the only person who prefers to shop at more than one grocery store. Create a “Grocery Store” Context in OmniFocus.
See, your top-level actions, the aisles, won’t show up in your “Grocery Store” context view. The Context TrickThere is some method to the madness of using a context at all beyond micro-managing where you buy bulk granola (as I do). From there you can look over the list and decide which store you want to get certain items at and move them into place. The advantage here is that as you populate all of your aisles with items you need to pick up, they will all show up in your “Grocery Store” context. This will make it so that any action you create in this project will be given the “Grocery Store” context. Select all of the aisles, right click them and set their default context to your top-most “Grocery Store” context.
The only way around this I could find is Rob Trew’s excellent Find Project Fast AppleScript. It can only search actions by name. Crackers? Um, anything else? The best guide for me is usually just my old lists, which should be easy enough to call up after they’re completed in OmniFocus, right? Not exactly.OmniFocus, for whatever reason, is dreadful when it comes to searching projects by name. Calling Up Old ListsSometimes I honestly can’t think of a damn thing to buy at the store. Now when I’m in the store I just walk from aisle to aisle, ticking off items as I go.There is one final trick here though. This is especially useful when syncing with OmniFocus for iPhone.Here’s a screenshot of my last grocery list in project view on my Mac:And here’s the same list in the “Grocery Store” context on my iPhone:On the iPhone I have my view options set to “In Contexts, show: Available” so I don’t see the aisles listed.
Omnifocus Applescript How To Change Those
There are instructions in the script itself for how to change those two parameters, but the easiest way to get this up and running is to keep your project and perspective names consistent with mine.Show your Perspectives inspector in OmniFocus on your Mac by hitting ^⌘P (control + command + P). This is done with the help of a Perspective in OmniFocus, also triggered by the AppleScript.The first thing you should know about this AppleScript is that, without modification, it will only search for projects named “Grocery Shopping” and change the application’s perspective to “Grocery Lists”. So I modified the script to open a new window showing completed actions for projects titled “Grocery Shopping”. It’s impressive, but it takes a few too many steps since what I’m trying to do is repetitive.
To install it on your OmniFocus toolbar do is the following: That way when the AppleScript runs you’ll get a brand new window showing all of your old grocery lists with all of the completed tasks (stuff you bought) exposed.I gave this modified version of Rob’s script a custom icon combining one of Omni’s own perspective icons with one of The Iconfactory’s excellent produce icons. Set it as laid out in the screenshot below:We only want to see completed tasks and projects, organized by completion date.
This way, I can throw food that I’d like to pick up when I have a chance anywhere in my OmniFocus database. There’s a bit more to my food workflow I may share another time, but first I’d like to see if anyone out there can help make this workflow a bit simpler.I’d love to see an AppleScript that takes active tasks from anywhere, even the inbox, and moves them into the appropriate aisle/action group. That’s a whole lot on how I buy groceries. As a semi-bonus, this will actually bring up the on hold Grocery Shopping template, making it a bit easier to duplicate, though there are some inelegant issues with doing it this way (you’ll see). Here’s what my the left side of my toolbar looks like now:Clicking the Groceries icon pops open a new window. Right click the OmniFocus toolbar and select “Customize Toolbar…” or go to the menu View > Customize Toolbar…That’s it.
