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