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

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

  • Prev by Date: Re: variables vrs properties
  • Next by Date: Re: How to do silly with Applescript?
  • Previous by thread: Re: variables vrs properties
  • Next by thread: Re: variables vrs properties
  • Index(es):
    • Date
    • Thread