• 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: Aplescript for changing case
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Aplescript for changing case


  • Subject: Re: Aplescript for changing case
  • From: "Randy Fingeroot" <email@hidden>
  • Date: Tue, 09 Jan 2001 11:21:33 -0500

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...
--

Randy Fingeroot
Systems Editor
Tallahassee Democrat
(850) 599-2141
(850) 599-2295 (fax)

> From: Allen Watson <email@hidden>
> Date: Tue, 09 Jan 2001 07:53:20 -0700
> To: Applescript <email@hidden>
> Subject: Re: Aplescript for changing case
>
>> Date: Tue, 9 Jan 2001 10:20:19 +1000
>> From: John Holt <email@hidden>
>> To: <email@hidden>
>>
>> I am new to this list, could someone please point me in the direction
>> where I can find an applescript to change selected text from upper to
>> lower case or vice versa please.
>> I hope to learn a great deal from this list and perhaps one day write a
>> script of my own!!!
>
> John, try downloading the AppleScript Guidebook modules from Apple. Go to
> <http://www.apple.com/> to find their AppleScript page and download the
> Essential Subroutines package. In there, you'll find a Change Case routine
> all done for you. Also, check out the other modules! Great and useful
> routines and examples, and you can copy scripts right from the Help pages
> into Script Editor.
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users


  • Follow-Ups:
    • Re: Applescript for changing case
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Aplescript for changing case (From: Allen Watson <email@hidden>)

  • Prev by Date: Re: Aplescript for changing case
  • Next by Date: Re: Applescript for changing case
  • Previous by thread: Re: Aplescript for changing case
  • Next by thread: Re: Applescript for changing case
  • Index(es):
    • Date
    • Thread