Re: Init Caps Handler
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