Re: switching text delimiters (was: email@hidden)
Re: switching text delimiters (was: email@hidden)
- Subject: Re: switching text delimiters (was: email@hidden)
- From: kai <email@hidden>
- Date: Mon, 25 Oct 2004 04:58:18 +0100
On Sun, 24 Oct 2004 23:30:51 -0400, doug rogers wrote:
And now, this used to work in OS9, to create a comma seperated string,
but now doesn't seem to want to work on the iBook
set AppleScript's text item delimiters to {return}
set TheItems to text items of TheItems
set AppleScript's text item delimiters to {","}
set TheItems to text items of TheItems
set AppleScript's text item delimiters to {""}
The contents of the field come in as a return delimited string, and
pass
through this code unchanged.
Try something like this, Doug:
--------------------
set theItems to "one
two
three"
set text item delimiters to {", "}
set theItems to paragraphs of theItems as string
set text item delimiters to {""}
theItems
--> "one, two, three"
--------------------
---
kai
_______________________________________________
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