• 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: Tue, 18 Jan 2011 22:17:38 +0000

In your message of Tue, 18 Jan 2011 15:40:04 -0600, you wrote:

>One suggestion, it might help to put the global declaration inside the
>handler. There are some scoping issues that require it, and it's really not
>needed anywhere else in a script. (In cases where it its simply declare it
>in those handlers too.)

I always think of something moments after posting scripts here and
that's what it was this time.  :\  Thanks for pointing it out.

A global declared in the run handler is visible throughout the script. A
global declared in an ordinary handler is only visible in that handler,
the run handler, and in any other handler where it's explicitly declared.

NG

>On 1/18/11 1:12 PM, "Nigel Garvey" <email@hidden>
>wrote:
>
>>
>>   global originalDelimiters
>>
>>   on setDelimiters(newDelimiter)
>>     if (newDelimiter's class is integer) then

 _______________________________________________
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: 
 >Re: varibles in handler (From: "Nigel Garvey" <email@hidden>)
 >Re: varibles in handler (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: varibles in handler
  • Next by Date: AppleScripting InDesign Yahoo! Group
  • Previous by thread: Re: varibles in handler
  • Next by thread: Re: varibles in handler
  • Index(es):
    • Date
    • Thread