I’ve long had a Finder toolbar applet to open a selected file in not-the-default application.
Now I’m moving my stuff to a new Mac with Tahoe, and it won’t work, that is, it runs, but the selected file is not opened. The command to do that is the last line of the script:
tell application id "MACS" to open file HFSpathToFile using application file id bundleid
To have it run I had to:
- recompile into a fresh applet (this added Assets.car)
- allow it to control Finder when asked.
I stuck in several display dialogs to see intermediate results, and lo & behold, when I added a display dialog AFTER the last line it worked!
So now I have this:
tell application id "MACS" to open file HFSpathToFile using application file id bundleid
display dialog "" giving up after 1
It must be a display dialog; inserting return has no effect.
It works as intended, without the silly addition, when run from the Editor.
It also runs as script, minus the idiotic dialog, from the Script Menu.
Any ideas as to the cause and/or solution?