Re: load script question
Re: load script question
- Subject: Re: load script question
- From: Michelle Steiner <email@hidden>
- Date: Thu, 28 Jun 2001 14:09:26 -0700
On 6/28/01 1:42 PM, Victor Yee <email@hidden> wrote:
>
That sounded rather abrupt... sorry. Telling foo to run will execute its
>
code since "set x to 10" is in an implied run handler. Note that this will
>
set the x of the main script. Without running foo, you get the "not
>
defined" error since the main script's x hasn't been assigned a value.
It gave me the necessary information.
With this script being saved as "dora:set x"
set x to 10
set y to 20
set z to x + y
and this script calling it
property loaded_script : alias "Dora:set x"
set foo to load script loaded_script
tell foo to run
{x, y, z}
The result is this:
-->{10, 20, 30}
And that's what I need it to do.
Thanks again,
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------