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

Re: varibles in handler


  • Subject: Re: varibles in handler
  • From: "Nigel Garvey" <email@hidden>
  • Date: Wed, 19 Jan 2011 22:49:10 +0000

Axel Luttgens wrote on Wed, 19 Jan 2011 17:46:50 +0100:

>Alternatively, perhaps could it prove useful to define a script:
>
>	script TID
>		property originalDelimiters: {}
>		on setDelimiters(newDelimiter)
>			[...]

>That way, one would have a single name (the script object's name) in the
>namespace anymore (instead of two: originalDelimiters and setDelimiters) as
>well as avoid any scoping and persistency issues coming with global
>variables.

It wouldn't avoid persistency issues. The variable TID would be global
and the script object, along with the current value of its
originalDelimiters property — would persist between runs.  :-)

>Just a thought ;-)

:-)

NG
 _______________________________________________
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

  • Follow-Ups:
    • Re: varibles in handler
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Setting QuickTime Player 7 Preferences
  • Next by Date: Re: varibles in handler
  • Previous by thread: Re: varibles in handler
  • Next by thread: Re: varibles in handler
  • Index(es):
    • Date
    • Thread