• 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: Skeeve <email@hidden>
  • Date: Wed, 21 Nov 2007 10:53:49 +0100

Philip Aker wrote:
Sharp as a tack. Try this form instead:
Great! Thanks Philip. Something new learned (<<<) and this leads me to my new perl-handlers, eliminating all this "ASCHII Character 3" and "... 10" stuff:

on InitialCaps for a_text
do shell script "perl -ne 'print ucfirst foreach split /\\b/'<<<" & quoted form of a_text
end InitialCaps


on AllCaps for a_text
   do shell script "perl -ne 'print uc' <<<" & quoted form of a_text
end AllCaps

on NoCaps for a_text
   do shell script "perl -ne 'print lc' <<<" & quoted form of a_text
end NoCaps

_______________________________________________
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: Philip Aker <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: Skeeve <email@hidden>)
 >Re: Init Caps Handler (From: Philip Aker <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