Re: Line count of a referenced text file?
Re: Line count of a referenced text file?
- Subject: Re: Line count of a referenced text file?
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 12 Nov 2001 21:35:21 -0800
On 11/12/01 8:28 PM, "Marc K. Myers" <email@hidden> wrote:
>
After you've read the text file into a variable you can use
>
AppleScript's text item delimiters to parse the text into paragraphs by
>
setting AppleScript's text item delimiters to "return". Then you can
>
count the number of items in the resulting list.
Somebody here once proved conclusively that getting 'paragraph i' of some
text is a LOT faster than using return as an AppleScript text item
delimiter, fast as that is, and making a list, then getting items of it. If
this is a huge file, this could make some sort of difference.
--
Paul Berkowitz