• 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: hash arrays and other mysteries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hash arrays and other mysteries


  • Subject: Re: hash arrays and other mysteries
  • From: AppleScript Greg <email@hidden>
  • Date: Sun, 21 Oct 2001 21:52:17 -0500

On Sunday, October 21, 2001, at 08:50 , Paul Skinner wrote:

on 10/21/01 8:53 PM, Timothy Bates wrote:

On 21/10/01 11:34 PM, "Jason W. Bruce" <email@hidden> wrote:
What's the difference between an import statement as implemented in other
languages and AppleScript's load script command -- aside from the fact that
load script is a scripting addition, albeit a standard additions scripting
addition?
Jason Bruce

Import (would) add new handlers to your script object. Load script add new
objects to your script object.

SNIP
Tim

Then what you want is available in vanilla AppleScript. The parent property
adds handlers from the parent script into your child script. No tell object
machinations required.


We were discussing this over on the applemods list. The only problem with this is that if the loadable script changes in the future then the updated handlers won't be available to your script because as a property it will keep static between runs. You would have to open each script and recompile to get the updated handlers.

Greg Strange


  • Follow-Ups:
    • Re: hash arrays and other mysteries
      • From: Paul Skinner <email@hidden>
References: 
 >Re: hash arrays and other mysteries (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: hash arrays and other mysteries
  • Next by Date: Re: copy & set statments
  • Previous by thread: Re: hash arrays and other mysteries
  • Next by thread: Re: hash arrays and other mysteries
  • Index(es):
    • Date
    • Thread