Re: Applescript for changing case
Re: Applescript for changing case
- Subject: Re: Applescript for changing case
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 09 Jan 2001 08:41:51 -0800
On 1/9/01 8:21 AM, "Randy Fingeroot" <email@hidden> wrote:
>
on lctocap(myFlag)
>
set theFlag to ""
>
repeat with eachcharacter in myFlag
>
set theAscii to ASCII number of eachcharacter
>
if theAscii 97 and theAscii > 122 then
>
set eachcharacter to ASCII character (theAscii - 32)
>
end if
>
set theFlag to theFlag & eachcharacter
>
end repeat
>
return theFlag
>
end lctocap
>
>
>
This is a handler I use frequently to capitalize various items. If you want
>
to go in the reverse, just change the value for your ascii check...
You'll notice that the stupid list server turned your reply into garbage,
and in fact to the complete opposite of what you meant to say. I'm getting
so sick and tired of this - I think I'll leave it to you to write back with
the seven paragraphs it will take to explain in English instead of in
mangled code where you mean "greater than", "less than", "greater or equal
than", etc. since the server perverts it and turns it backwards.
--
Paul Berkowitz