Re: Scope
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>) |