BBEdit 15.1.4: bug with Applescript

62 views
Skip to first unread message

Zax

unread,
Apr 7, 2025, 7:20:28 AM4/7/25
to BBEdit Talk
When an Applescript launched by BBEdit attempts to launch another Applescript, all BBEdit menus become *disabled* without any error messages (and then the only way to quit BBEdit is to force-quit).
Using "try catch" or "with timeout..." don''t change anything.

Sorry if this bug have already been reported.

Ulrich Kapp

unread,
Apr 7, 2025, 7:36:39 AM4/7/25
to BBEdit Talk
This looks to me like a common problem in AppleScript.
AppleScript doesn't support multithreading. This means that if you run an AppleScript from within another, the calling script is stalled until the other is terminated.
So if your second script goes into an endless loop or hangs on any other reason, you won't get any message at all, it's just the end… You can't even terminate the calling script and often you have to "kill" your Application by brute force.

Maybe you can find some helpful information here: ⇨ macscripter.net

Ulrich

Zax

unread,
Apr 8, 2025, 5:08:13 AM4/8/25
to BBEdit Talk
Thanks for your reply, and for the link. I wasn't aware of this AppleScript issue with nested scripts.
However, I don't remember having this kind of problem with the old BBEdit 9 or 10 that I used with these same AppleScripts.
I'll try to group my different scripts into a single large script.
Reply all
Reply to author
Forward
0 new messages