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: "Stockly, Ed" <email@hidden>
- Date: Tue, 07 Jul 2009 11:57:40 -0700
- Thread-topic: Vertical Bars disappear for lowercase variable names?
>>>I've got an issue. I need to ensure that certain variable names are all
lowercase. I thought putting vertical bars around the variable name would work
but it doesn't appear to in my case.
No. Vertical bars won't help in this case.
The compiler remembers what case variables have used in any particular
applescript and will reset each variable's case to whatever combination was
used when that variable was first compiled.
Deep in the works variables are NOT case sensitive (so Mark is right) but
the compiler remembers what case is DISPLAYED (so Michelle is right).
If you compile: myVariableCase one time in any script, then any of the
following will compile and display as myVariableCase and any of the will
work.
Myvariablecase
myvariablecase
MYVARIABLECASE
MyVsRiAbLrCsSe
I believe the only ways around this are:
Copy the script's text to a new script, change the variables and compile
and save as
Save as text, then change the variables, compile and save again as a
script. (Doesn't always work, for some reason)
Replace your current variables with new ones that have never been used in
that script.
HTH,
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