• 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: the Holy Grail of AppleScript lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: the Holy Grail of AppleScript lists


  • Subject: Re: the Holy Grail of AppleScript lists
  • From: "Chris Espinosa" <email@hidden>
  • Date: Wed, 19 Mar 2003 14:18:41 -0800

----- Original Message -----
From: "Emmanuel" <email@hidden>
Sent: Wednesday, March 19, 2003 1:26 PM
Subject: Re: the Holy Grail of AppleScript lists


> At 1:09 PM -0500 19/03/03, Paul Skinner wrote:
>
> >set t to text items of (do shell script ("echo '" & l as text) & "'
> >| tr '" & delim & "' '\n' | sort -f")
> >-->list of 8291 items.
> >
> >!!! WHAT!? how many? how the... That can't... DAMN! wow.
>
> Could they be upping AppleScript's stack size in "do shell script"???
>
> Would be funny. And that would be funny if the stack persisted so
> beyond that line.

No. Remember that do shell script is just an osax, it's called as a
subsidiary of whatever process is running the script. AppleScript's stack
size is just the same. But as Neb points out, when we implemented certain
operations on Unicode strings, we made their algorithms iterative (using no
spack space), where their string-class counterparts are recursive (using
stack space in linear relation to the number of items of the result). So if
you are having stack overflow problems with string operations, just coerce
it to a Unicode string and the same operation is likely to succeed.

Chris
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >the Holy Grail of AppleScript lists (From: Paul Skinner <email@hidden>)

  • Prev by Date: Newbie call method help needed please
  • Next by Date: Re: max script size
  • Previous by thread: Re: the Holy Grail of AppleScript lists
  • Next by thread: Re: the Holy Grail of AppleScript lists
  • Index(es):
    • Date
    • Thread