Suddenly Applescripts don't have permission

After updating to Sequoia 15.3 suddenly Applescript menu doesn't have permission to open files:

How can I stop this madness?


Posted on Feb 1, 2025 8:01 AM

Reply
10 replies

Feb 2, 2025 7:51 AM in response to John Galt

I assume not because

tell application "Finder" to open ((path to sites folder) as string)


still opens the folder.

It's not a terrible problem, I was able to fix it by saying (the less elegant):

tell application "Finder" to ((path to sites folder) as string) & "Add a dream.py" as alias
tell application "CotEditor" to open result

It's just that suddenly as of 15.3 Finder is unable to decide which app should open *.py files. Bummer because I have a lot of these scripts in the Applescript menu. And I repeat, Finder still knows when the script is run inside Script Editor.


Feb 2, 2025 8:14 AM in response to Gnarlodious

Pardon if this is redundant.


Locate any one of these Sites folder's Python files and perform a Get Info on it so you can set its default open with CotEditor. Follow through with the Change All… button. Quit Script Editor and then try AppleScript again to see if CotEditor now opens the result correctly.


Did you update the version of CotEditor, or has the developer dropped AppleScript dictionary support in it?


Substituting "Sublime Text" for your "CotEditor" and an HTML file from my Sites folder works as expected in Sequoia v15.3 when used interactively in Script Editor. I don't run AppleScripts from my menu bar.

use scripting additions

tell application "Finder" to ((path to sites folder) as string) & "dlx.html" as alias
tell application "Sublime Text" to open result


Feb 1, 2025 5:28 PM in response to Gnarlodious

Hi Gnarlodious


I noticed one of my AppleScripts stopped working under Sequoia, though it may have been Sonoma, which required I change something about it. Off the top of my head I don't recall precisely what it was though, but I believe it had something to do with the location of one of its files.


You probably aren't going to get much help here unless you were to post the affected AppleScript, or at least a significant portion of it. Can you do that?


Scripting including support for Python has become somewhat rudderless after Sal Soghoian left Apple a decade or so ago. I surmise he saw the writing on the wall which said "if iOS doesn't do it, neither will macOS" and that was that.

Feb 1, 2025 9:04 PM in response to HWTech

Yes, all those settings are still active. However it seems like there are a lot more options in that panel compared to what I remember.

The offending script looks like

tell application "Finder" to open ((path to sites folder) as string) & "Add a dream.py" as alias

However the script runs normally inside Script Editor. So apparently Finder is either "null" or can't decide from Finder which application defaults for *.py files.

Feb 1, 2025 10:27 AM in response to Gnarlodious

Gnarlodious wrote:

After updating to Sequoia 15.3 suddenly Applescript menu doesn't have permission to open files:
https://discussions.apple.com/content/attachment/f2184ec1-192f-4076-88ad-10610507a47c
How can I stop this madness?


what changed?

Sequoia 15.3 from what previously could be an important piece of background information here ...(?)


Python from where, how...is HomeBrew involved here(?)


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Suddenly Applescripts don't have permission

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.