• 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: ScriptingAddition for camelcase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ScriptingAddition for camelcase


  • Subject: Re: ScriptingAddition for camelcase
  • From: Christopher Stone <email@hidden>
  • Date: Mon, 16 Jan 2012 23:48:59 -0600

On Jan 16, 2012, at 20:09, Ronald Hofmann wrote:
does anyone know of a ScriptingAddition which does camelcase?

Examplae: camelcase "this example please" -> "This Example Please" 

I´m using Satimage but this only contains lowercase and uppercase :(
______________________________________________________________________

Hey Ronald,

I've fussed at them on and off for years about this, but they just don't see the need to add titlecase or sentence-case.  Nevertheless you can still do it easily using the Satimage.osax's regular expressions, and as far as I can tell it handles accented characters just fine.

set ex to "this example please"
set caml to change "\\b(.)(.*?)\\b" into "\\u\\1\\l\\2" in ex with regexp

--> This Example Please

The Satimage.osax is faster than shelling out to Unix, but these days the gap is smaller.

--
Best Regards,
Chris

 _______________________________________________
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: 
 >ScriptingAddition for camelcase (From: Ronald Hofmann <email@hidden>)

  • Prev by Date: Re: ScriptingAddition for camelcase (solved)
  • Next by Date: Re: ScriptingAddition for camelcase (solved via PHP)
  • Previous by thread: Re: camelCase
  • Next by thread: Re: ScriptingAddition for camelcase
  • Index(es):
    • Date
    • Thread