Re: /System/Library/Components/JavaScript.component's architecture
Re: /System/Library/Components/JavaScript.component's architecture
- Subject: Re: /System/Library/Components/JavaScript.component's architecture
- From: has <email@hidden>
- Date: Thu, 23 Oct 2014 21:29:18 +0100
Shane Stanley wrote:
> On 23 Oct 2014, at 7:28 pm, Dmitry Markman <email@hidden> wrote:
>>
>> Yosemite's /System/Library/Components/JavaScript.component binary
has only x86_64 architecture
>>
>> is it intentional omission?
>
> What else were you expecting?
The lack of i386 architecture support means JXA scripts will only run
within 64-bit processes. I'm guessing the OP is running an older 32-bit
only attachable app that traditionally executes OSA scripts in-process,
and is wondering why it refuses to run their shiny new JXA scripts.
JXA almost certainly uses ARC-based memory management, but ARC is only
available for x86_64 which makes 32-bit support impractical (the
JavaScriptOSA component I wrote a few months back had the same limitation).
Though compared to JXA's deliberately crippled functionality,
application incompatibilities, and inadequate documentation that totally
lies about how application scripting actually works, I'd say lack of
i386 support is the least of its shortcomings.
If the scripts don't use any fancy event handling, the OP should be able
to run them from OS X's Scripts menu or other external 64-bitprocess,
otherwise I'd recommend sticking with AppleScript until they can upgrade
to a 64-bit version. (Frankly, I'd recommend sticking with AppleScript
for all non-trivial/professional work: for all its faults as a language,
it's the only supported option that does application scripting and OSA
support right.)
Regards,
has
_______________________________________________
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