Re: Reading Lists and Records from Disk Files
Re: Reading Lists and Records from Disk Files
- Subject: Re: Reading Lists and Records from Disk Files
- From: "Jason W. Bruce" <email@hidden>
- Date: Wed, 10 Jan 2001 12:33:59 +0000
Richard23,
I learned the technique of loading a compiled script as a parent to
a main script from Arthur Knapp some time ago on this list -- thanks, Arthur
-- but I'm pretty sure the technique has been around for some time. If you
think about it, the mechanism is quite intuitive. Compiled scripts are
themselves script objects with implicit Script/ End Script statements, so
it's logical that standalone compiled scripts loaded into a main script can
behave the same way as script objects declared wholly within a compiled
script.
I've come to believe that AppleScript is a very well designed
language. I didn't realize this until I took a look at Python (considered to
be well designed) and found its design and AppleScript's to be similar.
Jason Bruce
>
Subject: Re: Reading Lists and Records from Disk Files
>
Date: Tue, 9 Jan 2001 14:40:00 -0800
>
From: Richard 23 <email@hidden>
>
To: <email@hidden>
>
>
> Property parent : load script alias "Hard drive:foo"
>
>
>
> foohandler() -- executes foohandler defined in foo
>
>
>
> fooproperty of parent -- gets fooproperty defined in foo
>
>
Well, shut my mouth! That may be very close to what I've been
>
looking for. Where did the idea to set the parent property to
>
a loaded script? Fantastic! I've done that with scripts
>
generated with run script: