Re: Converting characters
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