Re: Load Script
Re: Load Script
- Subject: Re: Load Script
- From: Ron Hunsinger <email@hidden>
- Date: Thu, 26 May 2011 16:41:02 -0700
On May 26, 2011, at 3:20 PM, Luther Fuller wrote:
> I think that the inability of the first command to include access to the parent script's properties must be a bug.
> I can't think of any good reason to include the parent's handlers, but not it's properties. It just doesn't add up.
Variable names are looked up statically, so two scopes see the same name as referring to the same variable only if one scope is nested in the other, or if the name is declared global in both scopes. Since A and B have disjoint scopes, B can see A's variable x only if x is declared global in both A and B. ("property x : ... " at the top level declares x to be global, as does "global x" anywhere.)
Handlers are found dynamically, by following the parent chain. Found handlers need not be global nor in scope. _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden