• 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: Reversing the lines in a file[speed, stack overflow}
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reversing the lines in a file[speed, stack overflow}


  • Subject: Re: Reversing the lines in a file[speed, stack overflow}
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 10 May 2002 12:24:50 -0700

On 5/10/02 11:50 AM, "Michael Sullivan" <email@hidden> wrote:

>>> set fileRef to open for access file ((((path to the desktop) as text) &
>>> "Resultr") as text) with write permission
>>> set AppleScript's text item delimiters to return
>>> write ((the reverse of textInput) as text) to fileRef
>
> What I don't understand is why this line doesn't error with a stack
> overflow for a 6000 line file. It's taking a list of 6000 items, and
> putting them back to a string. Is it only in one direction that there's
> a problem?

Yes, when making lists via 'text items of a string', not doing anything else
with them.

--
Paul Berkowitz
_______________________________________________
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: 
 >Re: Reversing the lines in a file[speed, stack overflow} (From: email@hidden (Michael Sullivan))

  • Prev by Date: Changing desktop pictures and alert sounds
  • Next by Date: Re: Quark Boxes
  • Previous by thread: Re: Reversing the lines in a file[speed, stack overflow}
  • Next by thread: Re: Reversing the lines in a file[speed, stack overflow}
  • Index(es):
    • Date
    • Thread