Re: Reversing the lines in a file[speed, stack overflow}
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.