Re: Sifting a list sans loop
Re: Sifting a list sans loop
- Subject: Re: Sifting a list sans loop
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 28 Jan 2002 08:12:43 -0800
On 1/28/02 7:15 AM, "Arthur J Knapp" <email@hidden> wrote:
>
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:
Ah. What's this, then? I think I (or rather a user) may have run into this.
Will it apply, say, to lists of lists? I.e., to a list of 1000 sub-lists
each with 50 items? That would explain something I've been mulling over.
I've been considering whether I should convert each of those 1000 sublists
to tab-delimited strings and write the string to a line of text file one at
a time as I go along, rather than convert the entire master-list to text at
the very end and write it as one text variable as I've been doing. It
doesn't take much longer to do so. It sounds as if I should, or at the very
least convert each sublist to string as I go along, so as to have only 1000
items, not 5000. But it's not completely impossible that somebody might have
5000 larger (text) items even so, so writing a line at a time would still
make sense in that latter case.
Does anyone know if there is a precise limit, and if it applies to 'total of
all sub-items in a master list' or just to subtotals of items in each
sub-list?
--
Paul Berkowitz