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)