• 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: Scope
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scope


  • Subject: Re: Scope
  • From: Emmanuel <email@hidden>
  • Date: Fri, 13 Dec 2002 09:44:42 +0100

At 12:56 PM -0800 12/12/02, Paul Berkowitz wrote:

tell g to set var3 to anotherHandler(var1)

I suspect a matter of scope, like you do, and I would really try

tell g to set var3 to anotherHandler(A's var1)

I am familiar with this kind of problem. If (in Smile) some object's script owns some property "p", then if its handlers are called only from the object's script I need no special precaution, I may use simply "p" in the script. But if the handlers are supposed to be called from another [object's] script, it is necessary that I specify whose p that is:

[script of the called object]
property p:""

on DoIt(theObject) -- thus it's better to always pass that reference
-- use "theObject's p" always
end

Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Scope
      • From: Paul Berkowitz <email@hidden>
    • Re: Scope
      • From: Paul Berkowitz <email@hidden>
    • Re: Scope
      • From: Paul Berkowitz <email@hidden>
References: 
 >Scope (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Newbie / PowerBook at work (LAN) & home (AirPort)
  • Next by Date: Re: Add an item to OS X's "startup items"
  • Previous by thread: Re: Scope
  • Next by thread: Re: Scope
  • Index(es):
    • Date
    • Thread