Re: Determining if a scripting addition is installed
Re: Determining if a scripting addition is installed
- Subject: Re: Determining if a scripting addition is installed
- From: Laine Lee <email@hidden>
- Date: Fri, 02 Sep 2005 17:03:00 -0500
On 9/2/05 4:49 PM, "kai" <email@hidden> wrote:
>
> On 2 Sep 2005, at 21:53, Laine Lee wrote:
>
>> I'm confused. If Jon's Commands was a brand new scripting addition
>> and an
>> isolated computer's Script Editor had never seen a script
>> containing "the
>> ticks" until the user typed it in, where in the world would it come
>> up with
>> the information «event JonstikC»?
>
> A script would normally be compiled and saved on a machine that *has*
> any required scripting additions (in this case, Jon's Commands)
> installed. At this stage, a term like 'the ticks' is converted to an
> internal executable format, the raw code for which is «event
> JonstikC». If the script is reopened on the same machine, the code
> «event JonstikC» is decompiled to 'the ticks'. If it is opened on
> another machine (without the relevant scripting addition), there will
> be be no dictionary available for AppleScript to decompile and
> reformat it as English - so it is displayed in its raw form. As I
> understand it, when a scripting addition is installed (or an
> application launched), its dictionary becomes available to
> AppleScript. So if a user types a term, this can be checked against
> the currently available terms and compiled/saved in the required
> executable format.
>
> ---
But my point is that I would rather use a method such as the other method
(demonstrated at the end of my previous posting, but not included above) so
that the construct in question would be effective whether or not it had ever
been compiled. Why, some of the most fun I've had with scripting in OS X has
involved the use of the osacompile terminal command!
--
Laine Lee
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden