Re: Converting a nested list to return delimited string with TIDs
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. |
----------------------------------------------------------------------