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

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

References: 
 >Load Script (From: Luther Fuller <email@hidden>)
 >Re: Load Script (From: Stan Cleveland <email@hidden>)
 >Re: Load Script (From: Luther Fuller <email@hidden>)
 >Re: Load Script (From: Alex Zavatone <email@hidden>)
 >Re: Load Script (From: Luther Fuller <email@hidden>)
 >Re: Load Script (From: Ron Hunsinger <email@hidden>)
 >Re: Load Script (From: Luther Fuller <email@hidden>)
 >Re: Load Script (From: Axel Luttgens <email@hidden>)
 >Re: Load Script (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Load Script
  • Next by Date: another obscure error message
  • Previous by thread: Re: Load Script
  • Next by thread: Re: Load Script
  • Index(es):
    • Date
    • Thread