• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: load script question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: Re: load script question
  • Next by Date: Re: -8850 error from info for
  • Previous by thread: Re: load script question
  • Next by thread: Re: load script question
  • Index(es):
    • Date
    • Thread