• 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
parent properties - limited access inside child's handlers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

parent properties - limited access inside child's handlers?


  • Subject: parent properties - limited access inside child's handlers?
  • From: email@hidden
  • Date: Fri, 2 Feb 2001 23:42:37 EST

I was fascinated to learn of the "parent" property, so I'm testing it. I
created a compiled script:

property a1: "hello"

and saved it to disk. I then created a script in script editor...

property parent : load script file "WorkZone:testparent"
display dialog a1

This works as expected - the dialog "hello" is displayed. I then created this
script:

property parent : load script file "WorkZone:testparent"

my useparentprop()

on useparentprop()
display dialog a1
end useparentprop

This errors saying the variable a1 is not defined. If the properties and
handlers of the parent script are treated just as if they were inline with
the child script, then the useparentprop() handler should be aware of the
property a1.

Incidentally, the child's handler's are correctly aware of the parent's
handler's, just not the parent's properties.

Any ideas?

Jeff Baumann
email@hidden
www.linkedresources.com

Pillage first, then burn.


  • Prev by Date: Re: Pushing gently HARD for AppleScript in OS X
  • Next by Date: Re: AppleWorks formatting and Glossary (was: Intro and Can this bedone?)
  • Previous by thread: Re: Pushing gently HARD for AppleScript in OS X
  • Next by thread: Re: parent properties - limited access inside child's handlers?
  • Index(es):
    • Date
    • Thread