Re: Sifting a list sans loop
Re: Sifting a list sans loop
- Subject: Re: Sifting a list sans loop
- From: ehsan saffari <email@hidden>
- Date: Tue, 29 Jan 2002 02:30:45 -0600
On 28 Jan 2002 10:15:04 -0500, Arthur J Knapp <email@hidden>
wrote:
>
set newList to every string of bigList
>
>
This works for almost any AppleScript type-class. One word
>
of caution: for a list of 5000 items, you might run into
>
AppleScript's upper limit for returning a list, approx 4050
>
some items or so:
>
>
if ( count of strings in bigList = 5000 ) then
>
>
set newList to every string of bigList
>
--
>
--> error "Memory overflow..."
Thanks Arthur...
<academic>
I tried to break it another way, but maybe this is the wrong way.
Started with a big list of lists and strings:
{myData} -->10645 items
concatenated it twice:
set myData to myData & myData & myData --> 31935 items
got it's text
set myTxt to myData's Text --> 5313 items
also tried the "every string" construct:
set newList to every string of myData --> 5313 items
So what is the limit for the number of items when returning a list, and
what syntax might invoke it.
</academic>
cheers
ehsan