Re: High Sierra/script menus/ASObjC
Re: High Sierra/script menus/ASObjC
- Subject: Re: High Sierra/script menus/ASObjC
- From: Shane Stanley <email@hidden>
- Date: Wed, 15 Nov 2017 15:21:25 +1100
On 15 Nov 2017, at 9:22 am, Shane Stanley <email@hidden> wrote:
>
> My guess would be a bug. Script Debugger (recent versions), ASObjC Explorer
> and the system Script menu use the same method of running scripts from their
> script menus, which involves running them in a separate process (using
> NSUserScriptTask). I'm guessing the other apps you mention are running them
> within their own processes, using NSAppleScript, OSAScript or (more likely)
> C-based APIs.
>
> The former method was introduced primarily as a way for sandboxed apps to run
> scripts, and it effectively insulates the app from any potential script
> problems -- something more likely in ASObjC. But there's been no documented
> change that should make the other method any less reliable. I gather you're
> not using APFS, yes?
FWIW, I've done some experiments here under 10.3.2 beta. Running BBEdit, I see
the same result as you: a crash as soon as I run a script with ASObjC code. The
crash appears to be in AppleScriptObjC itself.
I then tried using a version of Script Debugger that runs script within its own
process, and there was no crash. I also tried using FastScripts, which also
runs them internally, and it didn't crash them either. So whatever the cause
is, it's not as simple as I suspected.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden