• 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: "Gary (Lists)" <email@hidden>
  • Date: Wed, 28 Sep 2005 00:36:16 -0400

"Malcolm Fitzgerald" wrote:

>
> On Sep 27, 2005, at 2:21 PM, Patrick J. Collins wrote:
>
>> Is there a way to set applescripts text delimiters to more than one
>> character?
>
> On 28/09/2005, at 10:39 AM, 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."
>
> That is fantastic!  But when I try it:
>
> 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"

I absolutely can not explain why it is that now, I too, get the same result
as you.

I copied and pasted the prior script directly from Smile, posted that
message, left from the computer without closing anything, had dinner,
watched a movie, and then returned.  After reading your message, I flipped
over to the still-running Smile and ran the three lines again, and am
baffled at the outcome.

I think my reliance on two TID handlers [split() and join()] has clouded my
memory of multi-item TIDs working or not working.

Michelle's approach is obviously correct.
(And I remain confused as to my earlier result.)

--
Gary

 _______________________________________________
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

  • Follow-Ups:
    • Re: multiple text delimiters
      • From: Shane Stanley <email@hidden>
References: 
 >Re: multiple text delimiters (From: Malcolm Fitzgerald <email@hidden>)

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