• 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: "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


  • Prev by Date: AppleScript -> How to send a text message to a cellular phone
  • Next by Date: mount Apple share volume if it's not in a local AppleTalk Zone ?
  • Previous by thread: Re: load script question
  • Next by thread: URL Access Module
  • Index(es):
    • Date
    • Thread