Re: Parsing quoted text
Re: Parsing quoted text
- Subject: Re: Parsing quoted text
- From: T&B <email@hidden>
- Date: Tue, 26 Sep 2006 08:14:18 +1000
Hi Yvan,
Here is a draft which seems to do the trick.
set textBlock to "item1 item2 'item 3' [item 4]"
set delimiter to " "
set quotePairList to {{quote, quote}, {"'", "'"}, {"[", "]"}} --
set textBlock to normalize(textBlock, quotePairList)
set liste to spaces2space(textBlock)
Thanks for the thoughtful and quick response. When I try your script, I get
the result:
{"item1", "item2", "'item 3'", "[item 4]"}
But it should be:
{"item1", "item2", "item 3", "item 4"}
Thanks,
Tom
_______________________________________________
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