• 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
Re: multiple text delimiters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple text delimiters


  • Subject: Re: multiple text delimiters
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 27 Sep 2005 22:57:34 -0700

On Sep 27, 2005, at 5:39 PM, Gary (Lists) wrote:

set the target_string to "[this] is (a) (test) (sentence.]"
set text item delimiters to {"]", "[", "(", ")"}
item 1 of (text of (text items of target_string))
--> "this is a test sentence."

I use TIDs this way all the time to break out parts of text.

All I get is

--> "[this"

I think that you have an OSAX in there that is handling that code.

Here is what the ASLG has to say about it:

"The Text Item Delimiters property consists of a list of strings used as delimiters by AppleScript when it coerces lists to strings or gets text items from strings. AppleScript currently uses only the first delimiter in the list."

-- Michelle

--
"Where is the wisdom we have lost in knowledge?
 Where is the knowledge we have lost in information?
 Where is the information we have lost in data?"

T.S. Eliot (1915)

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: multiple text delimiters (From: "Gary (Lists)" <email@hidden>)

  • Prev by Date: Re: multiple text delimiters
  • Next by Date: Object inheritance question, pt 2...
  • Previous by thread: Re: multiple text delimiters
  • Next by thread: Re: multiple text delimiters
  • Index(es):
    • Date
    • Thread