• 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: Sifting a list sans loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Scripting Additions: Embracing the Horror of Unix
  • Next by Date: limit on length of lists returned (was Re: Sifting a list sans loop)
  • Previous by thread: Re: Sifting a list sans loop
  • Next by thread: Re: Sifting a list sans loop
  • Index(es):
    • Date
    • Thread