• 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
Vertical Bars disappear for lowercase variable names?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Vertical Bars disappear for lowercase variable names?


  • Subject: Vertical Bars disappear for lowercase variable names?
  • From: Jeffrey Weston <email@hidden>
  • Date: Tue, 7 Jul 2009 16:15:25 +0000
  • Thread-topic: Vertical Bars disappear for lowercase variable names?

Hello,

 

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.

 

The bars disappear on compile if the variable name is all lowercase (or is all lowercase and contains additional legal characters [numbers or underscore]).  If the variable name contains uppercase or illegal characters then the vertical bar sticks after compile.

 

Anyone have suggestions on how to ensure the variable names remain in lower case?  Or am I doing something wrong?

 

Below is some code and a comment about what happens after compile:

 

set RuNiD to "mixed without vertical bars"

 

set |RUNID| to "uppercase" -- Vertical bars stick

set |runID| to "mixedCase" -- vertical bars stick

set |runID()| to "lower+illegal" -- vertical bar stick

 

set |runid5| to "lower+number" -- Vertical bars disappear

set |runid_| to "lower+underscoe" -- Vertical bars disappear

set |runid| to "lowercase" -- Expect to remain all lower case (but because vertical bars disappear, the name matched the mixed case above.)

 

 

Thanks

 

Jeffrey Weston | MacWORD TEST | MacBU – MICROSOFT

WORK: (425) 703-7684   email@hidden   microsoft.public.mac.office.word

 

 _______________________________________________
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: Vertical Bars disappear for lowercase variable names?
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Applescript + Safari to open URL
  • Next by Date: Re: Vertical Bars disappear for lowercase variable names?
  • Previous by thread: Re: Send Clipboard Image to Web
  • Next by thread: Re: Vertical Bars disappear for lowercase variable names?
  • Index(es):
    • Date
    • Thread