Re: multiple text delimiters
Re: multiple text delimiters
- Subject: Re: multiple text delimiters
- From: "Nigel Garvey" <email@hidden>
- Date: Wed, 28 Sep 2005 10:36:31 +0100
Malcolm Fitzgerald wrote on Wed, 28 Sep 2005 11:19:16 +1000:
>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"
Gary must have something interesting installed on his machine. :-)
'text of' (in a non-interesting set-up) is the same as 'every string of',
so it's superfluous if the text items are strings and gives an empty list
if they're Unicode text.
NG
_______________________________________________
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