• 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: Tue, 20 Nov 2007 22:36:18 +0100

P.S. I forgot to tell you how to use them.

set ac to AllCaps for "this
is
a
test text"

and the  handlers can even be simpler:

on InitialCaps for a_text
do shell script "perl -ne 'print ucfirst foreach split /\\b/'<<'" & (ASCII character 3) & "'" & (ASCII character 10) & a_text
end InitialCaps


on AllCaps for a_text
do shell script "perl -ne 'print uc' <<'" & (ASCII character 3) & "'" & (ASCII character 10) & a_text
end AllCaps


on NoCaps for a_text
do shell script "perl -ne 'print lc' <<'" & (ASCII character 3) & "'" & (ASCII character 10) & 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
References: 
 >Init Caps Handler (From: Oakley Masten <email@hidden>)
 >Re: Init Caps Handler (From: Skeeve <email@hidden>)

  • Prev by Date: Re: Applescript schedulers
  • Next by Date: Re: Photoshop CS3 conversions
  • Previous by thread: Re: Init Caps Handler
  • Next by thread: Re: Init Caps Handler
  • Index(es):
    • Date
    • Thread