MACSCRPT Archives

September 2008

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jon Pugh <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 18 Sep 2008 13:10:01 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
At 2:16 PM -0500 9/18/08, RJay Hansen wrote:
>I'm writing a script that's intended to parse out text that is enclosed within underscores (_like this_).

tell SmartString
	setString("Here's some text with underscores (_like this_).")
	betweenStrings("_", "_")
end tell

returns: "like this"

I just updated SmartString to version 1.7, which includes additional token based accessors for doing path manipulation and the like.

You should download this link from my web page as it's MacRoman and doesn't render quite correctly, so it copy/pastes wrong (losing ‚ for example).

http://www.seanet.com/~jonpugh/

or feed this URL to a download program, like Interarchy or curl:

http://www.seanet.com/~jonpugh/software/SmartString.applescript

Jon

ATOM RSS1 RSS2