Re: hash arrays and other mysteries
Re: hash arrays and other mysteries
- Subject: Re: hash arrays and other mysteries
- From: Paul Skinner <email@hidden>
- Date: Sun, 21 Oct 2001 23:24:00 -0400
on 10/21/01 10:52 PM, AppleScript Greg wrote:
>
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
I couldn't stand the idea of that!
I assign the handlers to properties in the script server with run
script. This way the script is loaded fresh on each launch of the script
server.
P.S. What's up with the Journal (? that's what I got in acknowledgement )
version of that list. I signed up weeks ago and thought it was just real
quiet. I haven't ever gotten a post. Oh well, I'll try to sign up again.
--
Paul Skinner