Re: Change Character
Re: Change Character
- Subject: Re: Change Character
- From: "Gary (Lists)" <email@hidden>
- Date: Sun, 05 Jun 2005 07:02:17 -0400
"Gary (Lists)" wrote:
> Try calling your handler with 'my'.
"tim" wrote:
> you need to add "my" to the call for RemoveColons.
"Kim Hunter" wrote:
> Thankyou \ Solved every thing
>
> What is the deal with the My bit
Well, it has to do with "scope". (Not the mouthwash.)
Scope means "the range over which AppleScript recognizes [a] declared
identifier". Depending on where in your script you are calling your
handler, and in what context you are running the script, the use of the word
"my" clarifies the issue. (So does 'of me'.) That's why it's usually
important to post your script with more context, so that readers can see
these issues as well as the code itself.
You can read more about issues of scope affecting variables, properties and
handlers in the ASLG.
The URLs will likely wrap, so be aware of that when linking. (It's terribly
inconvenient to link to relevant sections of the ASLG. But, perhaps in a few
years when it's revised. ;)
Section related to 'Scope':
<http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScript
LangGuide/AppleScript.eb.html#21338>
Top-level framed index for ASLG:
<http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScript
LangGuide/index.html>
--
Gary
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden