• 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: Init Caps Handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Init Caps Handler


  • Subject: Re: Init Caps Handler
  • From: Philip Aker <email@hidden>
  • Date: Wed, 21 Nov 2007 03:09:11 -0800

On 2007-11-21, at 02:30, KOENIG Yvan wrote:

Thanks Philip to take care of our old-european-languages ;-)

Best to use this second version. It covers the edge cases pointed out by M Skeeve.

set elan to quoted form of "élan, it's virtues are elegant ;-)"
set upper to (do shell script "tclsh <<< 'puts [string toupper {'" & elan & "'}]'")
set lower to (do shell script "tclsh <<< 'puts [string tolower {'" & elan & "'}]'")
set title to (do shell script "tclsh <<< 'puts [string totitle {'" & elan & "'}]'")
upper & return & lower & return & title

--> "ÉLAN, IT'S VIRTUES ARE ELEGANT ;-)
élan, it's virtues are elegant ;-)
Élan, it's virtues are elegant ;-)"

Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

 _______________________________________________
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: Init Caps Handler
      • From: KOENIG Yvan <email@hidden>
    • Re: Init Caps Handler
      • From: Skeeve <email@hidden>
References: 
 >Init Caps Handler (From: Oakley Masten <email@hidden>)
 >Re: Init Caps Handler (From: Paul Scott <email@hidden>)
 >Re: Init Caps Handler (From: Philip Aker <email@hidden>)
 >Re: Init Caps Handler (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Init Caps Handler
  • Next by Date: Re: Init Caps Handler
  • Previous by thread: Re: Init Caps Handler
  • Next by thread: Re: Init Caps Handler
  • Index(es):
    • Date
    • Thread