• 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: String Munging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String Munging


  • Subject: Re: String Munging
  • From: has <email@hidden>
  • Date: Mon, 23 Jul 2007 15:27:12 +0100

Jon Pugh wrote:

At 3:24 PM -0500 7/22/07, John C. Welch wrote:
Having said that, string manipulation is one of the biggest holes in generic AppleScript. As in it kinda sucks at it.

s/kinda/totally/g :p


Enclosed, please find my SmartString object which makes string manipulation a breeze in AppleScript. Watch for line breaks.

No offence, but vanilla text libraries like SmartString just don't cut it - they're slow, limited in functionality, and completely unsuitable for working with Unicode text. I've written several for AppleMods and wouldn't recommend those either. Nor do I consider 'do shell script' a good option given its lack of stdin support.


The only solutions I'd recommend are TextCommands (which I wrote to fill precisely this gap) or a good scriptable text editor like TextWrangler. That said, anyone who does heavy-duty text processing would really be much better off learning a bit of Perl or Python and doing everything there.

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
http://appscript.sourceforge.net/objc-appscript.html

_______________________________________________
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: String Munging
      • From: Jon Pugh <email@hidden>
    • Re: String Munging
      • From: Rob Stott <email@hidden>
  • Prev by Date: Re: Choose from list goes out of screen range
  • Next by Date: Re: String Munging
  • Previous by thread: Re: format of text in resulting text file
  • Next by thread: Re: String Munging
  • Index(es):
    • Date
    • Thread