• 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
Tanaka's osax 2.01- MT Parse command ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Beep broken in 10.1.4? (HELP!!!)
  • Next by Date: Re: Beep broken in 10.1.4?
  • Previous by thread: Re: Applescript file extensions
  • Next by thread: Re: Tanaka's osax 2.01- MT Parse command ??
  • Index(es):
    • Date
    • Thread