• 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: Converting a nested list to return delimited string with TIDs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting a nested list to return delimited string with TIDs


  • Subject: Re: Converting a nested list to return delimited string with TIDs
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 7 Jun 2001 06:50:06 -0700

On 6/6/01 11:00 PM, Paul Berkowitz <email@hidden> wrote:

>set n to {{"aa", "bb", "cc"}, {"dd", "ee", "ff"}}
>set AppleScript's text item delimiters to {return}
>set n to n as string
>set AppleScript's text item delimiters to {""}
>n
>
>-->
>"aa
>bb
>cc
>dd
>ee
>ff"

However,

set n to {{"aa", "bb", "cc"}, {"dd", "ee", "ff"}}
set AppleScript's text item delimiters to {return}
set a to first text item of n
set AppleScript's text item delimiters to {""}
a
-->{"aa", "bb", "cc"}

That's what threw me off.

Your second example can be best demonstrated by making the last line

display dialog n

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Prev by Date: Re: carriage return & line feeds
  • Next by Date: Re: Converting a nested list to return delimited string with TIDs
  • Previous by thread: Re: Converting a nested list to return delimited string with TIDs
  • Next by thread: Re: Converting a nested list to return delimited string with TIDs
  • Index(es):
    • Date
    • Thread