• 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: Converting characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting characters


  • Subject: Re: Converting characters
  • From: email@hidden
  • Date: Tue, 7 Aug 2001 22:30:00 -0400

On Tue, 07 Aug 2001 12:39:19 -0700, From: Paul Berkowitz <email@hidden>
proposed,

> I hope you realize that this will also apply to lower-case versions "x" and
> "z". If that's what you want, or you never expect to get the lower-case
> versions, leave your script as it is. Otherwise, you have two options:
>
> considering case
[...]

> or else use the ASCII character definitions to be specific:
>
> if thechar = ASCII character 88 then --upper-case "X"
> set newchar to "\\"
> else if thechar = ASCII character 90 then --upper-case "Z"
> set newchar to "\""
> end if

Doesn't work.

"x" = (ASCII character 88)
--> result: true
"X" = (ASCII character 88)
--> result: true

(ASCII character 88) just evaluates to the string, "X", and "X"="x" normally.
You have to have the "considering case" block.
--
Scott Norton Phone: +1-703-299-1656
DTI Associates, Inc. Fax: +1-703-706-0476
2920 South Glebe Road Internet: email@hidden
Arlington, VA 22206-2768 or email@hidden


  • Prev by Date: Re: Getting comments as a list... Delimiters???
  • Next by Date: Re: Select desktop items for a specific volume
  • Previous by thread: Re: Converting characters
  • Next by thread: archives-it can't be as bad as I think it is
  • Index(es):
    • Date
    • Thread