Re: load script question
Re: load script question
- Subject: Re: load script question
- From: "Jason W. Bruce" <email@hidden>
- Date: Sat, 30 Jun 2001 13:52:57 +0000
Michelle Steiner wrote:
>
On 6/29/01 6:33 AM, Jason W. Bruce <email@hidden> wrote:
>
>
> Loading the script as a parent will also execute the run handler of the
>
> loaded script without a "tell foo to run" statement.
>
>
>
> property parent: load script alias "Dora:set x"
>
>
That didn't work.
>
>
property parent : load script alias "Dora:set x"
>
{x, y, z}
>
--> The variable x is not defined.
Hi Michelle,
I hadn't saved your original post, so can't recall your original
script. If I write a script as follows -- set x to 10 -- and save it as a
compiled script, and then create a new script which loads that compiled
script as a parent, the result window shows 10 when I run the child script
from Script Editor -- which I think means that the child script called the
parent script's run handler. It's possible in your example that the child
script has called the run handler of the parent script, but because of scope
issues you're getting "The variable x is not defined" result.
Jason