Re: String Munging
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