• 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: Andrew Oliver <email@hidden>
  • Date: Tue, 10 Jun 2003 11:07:39 -0700

This is easy to do with Text Item Delimiters:

set theString to "item1\item2\item3\item4"

set my text item delimiters to "\"
set theItems to text items of theString
-->{"item1", "item2", "item3", "item4"}

Andrew
:)

On 6/10/03 10:01 AM, "John Tuttle" <email@hidden> wrote:

> I have a script which pulls the contents of a value list from FileMaker
> Pro as a string.
>
> The resulting string is in the following format:
>
> "item1\ritem2\ritem3\ritem4"
>
> I can't seem to get this into a form that Applescript can understand as
> a list with multiple items.
>
> All I can coax is a list with one item "item1\ritem2\ritem3\ritem4".
>
> I am trying to get a list of 4 items.
>
> Any suggestions?
> --
> John Tuttle
> _______________________________________________
> 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.
_______________________________________________
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: Loop to erase the contents of my logs ...
  • Next by Date: Re: list coersion...
  • Previous by thread: Re: list coersion...
  • Next by thread: Re: list coersion...
  • Index(es):
    • Date
    • Thread