I have a simple folder opening macro that isn't working:
Open “~/Documents/Templates/ Label Templates”
With Finder
Stop macro and notify on failure.
Instead of opening the folder Label Templates, it takes me to my User folder (
~).
I'm suspicious that this may be related to a non-KM issue. When I add a folder to the Finder toolbar (which I've used for years in the past), clicking that folder takes me back to my user folder instead, unless the folder is also in the sidebar.
"~/Documents/Templates/ Label Templates"
Could it be because of there is a accidental space in front of Label where only "~/Documents/Templates/Label Templates" folder exist.
Bingo!
For that folder at least, that was the problem.
I often use leading spaces to force folders or files to the top of a Finder list.
I will check that out to see if it's a general problem with Finder Toolbar and aliases.
The KM Open command seems to be working consistently once I changed the folder name.
There's something mysterious going on.
Even the Finder's Go to Folder won't work if the folder name has a leading space. Is that new in Big Sur?
And I still can't make Finder Toolbar folders work whether or not the name has a leading space.
Thanks for all your suggestions.
My problem was not related to KM at all.
I trashed the Finder plist file and restarted. Voila, problem solved. The KM open folder shortcut worked, and all Finder Go to Folder operations worked too.
As I reestablish my Finder preferences, if I find something that causes the problem, I'll report back...
Later: I can recreate the problem with paths if I delete Documents from the sidebar. With Documents in the sidebar, everything works. Keeping fingers crossed.
Now if I can figure out a simple way to open a folder in the Finder without opening a new window..
As I have it working now, if there's a Finder window open, KM Open folder opens a new Finder window set to show the folder.
It would be slightly more convenient to have the target folder selected in the already open Finder window.
After adding an Activate Finder step and a little more fiddling I find this:
if a Finder window is open, the AppleScript works perfectly
if no Finder window is open, one doesn't open
Adding a ⌘N step in KM opens a new window even if one exists
It seems an else is needed after
"if exists of front window then"
I found this, but I'm out of my depth in AppleScript.