Re: hash arrays and other mysteries
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