• 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: switching text delimiters (was: email@hidden)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Safari reload script.
  • Next by Date: Re: email@hidden
  • Previous by thread: Re: email@hidden
  • Next by thread: how to read/write itunes' preferences for ipod updates
  • Index(es):
    • Date
    • Thread