• 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: list coersion...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list coersion...


  • Subject: Re: list coersion...
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 10 Jun 2003 11:04:57 -0700

On Tuesday, June 10, 2003, at 10:01 AM, John Tuttle wrote:

All I can coax is a list with one item "item1\ritem2\ritem3\ritem4".

I am trying to get a list of 4 items.

When the string is compiled, the /r is changed to a return or line feed character.

So enter the following:

set foo to "item1\ritem2\ritem3\ritem4"
set text item delimiters to "\r"
text items of foo

Compiling (checking syntax) changes it to

set foo to "item1
item2
item3
item4"
set text item delimiters to "
"
text items of foo

Running it then returns

{"item1", "item2", "item3", "item4"}

--Michelle

--
Support our troops. Bring them home NOW!
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >list coersion... (From: "John Tuttle" <email@hidden>)

  • Prev by Date: Re: Saving PICT's from Photoshop...
  • Next by Date: Re: Loop to erase the contents of my logs ...
  • Previous by thread: list coersion...
  • Next by thread: Re: list coersion...
  • Index(es):
    • Date
    • Thread