• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Determining if a scripting addition is installed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining if a scripting addition is installed


  • Subject: Re: Determining if a scripting addition is installed
  • From: kai <email@hidden>
  • Date: Fri, 2 Sep 2005 22:49:27 +0100


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.


---
kai


_______________________________________________ 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
  • Follow-Ups:
    • Re: Determining if a scripting addition is installed
      • From: Laine Lee <email@hidden>
References: 
 >Re: Determining if a scripting addition is installed (From: Laine Lee <email@hidden>)

  • Prev by Date: Re: How to determine whether launched automatically at login
  • Next by Date: Re: Determining if a scripting addition is installed
  • Previous by thread: Re: Determining if a scripting addition is installed
  • Next by thread: Re: Determining if a scripting addition is installed
  • Index(es):
    • Date
    • Thread