Re: variables vrs properties
Re: variables vrs properties
- Subject: Re: variables vrs properties
- From: "Stockly, Ed" <email@hidden>
- Date: Wed, 5 Jan 2011 13:20:28 -0600
- Acceptlanguage: en-US
- Thread-topic: variables vrs properties
>>>> Aren't properties scoped to the class and globals scoped to the entire
>>>> application instance?
I donĀ¹t think so, the only scoping differences are:
You must declare globals inside handlers to access their value, but not
Properties; when you run a script object and declare a global with the same
name as a global in the script, the script object has access to the global
declared in the script. That is not the case in properties.
Come to think of it, that behavior may be what the OP on another thread was
looking for. Hmmm...
See AppleScript Language guide: Scope of Properties and Variables Declared
at the Top Level of a Script starting about p313 for more info.
ES
_______________________________________________
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