Re: load script question
Re: load script question
- Subject: Re: load script question
- From: Sun Real <email@hidden>
- Date: Fri, 29 Jun 2001 12:42:19 +1000
Michelle Steiner's message of 29/6/01 7:09 AM contained:
>
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.
You may have other stuff to do with the script, but if that's *all* you
want, you don't need to load the script - just run it. The result is
returned.
run script alias "Dora:set x"
-->{10, 20, 30}
Cheers,
Richard Morton
-- Great Lies of the Music Business: "My last band had a record deal
but we broke up before we could record the album"