Tanaka's osax 2.01- MT Parse command ??
Tanaka's osax 2.01- MT Parse command ??
- Subject: Tanaka's osax 2.01- MT Parse command ??
- From: Bill Christens-Barry <email@hidden>
- Date: Tue, 23 Apr 2002 16:51:38 -0500
I'm trying to use Tanaka's osax 2.0.1 to parse a string into a list
of parts, with an unexpected result:
tell application "Finder"
set allParts to "partOne@partTwo@partThree" as string
set prsr to "@"
set thePartsList to (MT Parse allParts item delimiter prsr)
display dialog (length of thePartsList)
-->"1"
display dialog (thePartsList as text)
-->"partOnepartTwopartThree"
end tell
I expected to get a list containing the 3 items
{"partOne","partTwo","partThree"}, but was surprised by the effective
removal of the parsing string. I've tried a variety of explicit
coercions (to text, list, etc) without getting what I expected.
I'm using MacOS 8.6 and the Applescript 1.3.7 extension. Any examples
of how to do this successfully?
-----------------------
Bill Christens-Barry, PhD
Equipoise Imaging, LLC
email@hidden
http://www.eqpi.net/eqpi/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.