Old script to manage project folders in Finder stopped working

For years I’ve been using an old Applescript from within Omnifocus that opens a Finder folder with the same name as the current OF folder I’m in. If the Finder folder didn’t exist, it created a new one. I like to keep files that I need for my OF projects in these Finder folders.

This script has been incredibly helpful for me to keep things organized.

The script recently stopped working. I’m wondering if there is another, more modern script or other automation object that does the same thing?

I’ve been using this Applescript for so long that I’ve forgotten the details of where I found it. It looks to me like I originally started using it with OF 2. Is it possible that a script that old would continue to have worked until just recently?

Please share the script.

Hm. I just took a look at it. It seems to reference a database path that doesn’t exist on my computer:

$HOME/Library/Caches/com.omnigroup.OmniFocus/OmniFocusDatabase2

This is the only script I can find off hand, but maybe it’s not the one that I have been using for so long with such success. Maybe I accidentally deleted the one I’ve been using? If I knew where to look, I could see if I can restore it with Time Machine?

Anyway, here’s the script I found.

FindProject.scpt.zip (16.2 KB)

Have you found a solution? I’m interested in implementing something to create and maintain a folder structure parallel to the project structure I have set up.

Hookmark does this. It creates a bidirectional link so you can go from Folder to Project and back again.

You can also set templates, so for example when I create a folder, it has a blank markdown file in it called Notes and Actions - Project Name.md

I set up a system using two Keyboard Maestro macros. I place the mouse over the name of an OF project and press the appropriate shortcut key. One macro uses Spotlight to search the Mac for the folder name. If it doesn’t find what I’m looking for, I can use the second one to create a new folder in a predefined location.

It’s not as good as the Applescript I was using for many years, but it gives me something I can work with.

1 Like