RE: Vertical Bars disappear for lowercase variable names?
RE: Vertical Bars disappear for lowercase variable names?
- Subject: RE: Vertical Bars disappear for lowercase variable names?
- From: Jeffrey Weston <email@hidden>
- Date: Tue, 7 Jul 2009 18:25:10 +0000
- Thread-topic: Vertical Bars disappear for lowercase variable names?
Thanks for the help.
This appears to be an "AppleScript Oddity".
If the vertical bars are supposed "provide a loop hole" to the case insensitive rules (see "AppleScript Lexical Conventions") then they should work when the variable name is all lowercase. Just as they do work when case is mixed or uppercase.
-----Original Message-----
From: applescript-users-bounces+jeffrey.weston=email@hidden [mailto:applescript-users-bounces+jeffrey.weston=email@hidden] On Behalf Of Mark J. Reed
Sent: Tuesday, July 07, 2009 9:52 AM
To: Applescript Users
Subject: Re: Vertical Bars disappear for lowercase variable names?
Ok, well, my test must have been flawed. Something is inconsistent here, then.
Sorry for the misinformation. I did qualify it with an AIUI. :)
On Tue, Jul 7, 2009 at 12:48 PM, Michelle Steiner<email@hidden> wrote:
> On Jul 7, 2009, at 9:39 AM, Mark J. Reed wrote:
>
>> If "foo" is not an active term in the
>> current context, then "|foo|" refers to the same variable, as do
>> "Foo", "|fOo|", etc.
>
> Not true
>
> set foo to 1
> |Foo| = foo
>
> The result is an alert "The variable |Foo| is not defined.
>
> set foo to 1
> set |Foo| to 2
> |Foo| = foo
>
> --> false
>
> -- Michelle
>
> --
> it ain't "schadenfreude" if the bastards deserve it.
>
>
_______________________________________________
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