Re: hash arrays and other mysteries
Re: hash arrays and other mysteries
- Subject: Re: hash arrays and other mysteries
- From: Timothy Bates <email@hidden>
- Date: Mon, 22 Oct 2001 17:45:18 +1000
On 22/10/01 11:50 AM, "Paul Skinner" <email@hidden> 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.
Almost. You can't say
Set parent to string.lib
Set parent to array.lib
Set parent to graph.lib
Set parent to UI.lib
Set parent to game.lib
We humans have 2 parents, but scripts have only 1 and noone has 5
But you can say
include string.lib
include array.lib
include graph.lib
include UI.lib
include game.lib
So include is good for what it does. Which makes it good. If none ever used
it, it would hurt noone. If someone uses it (they would) if is helping
Tim