Re: counting lines
Re: counting lines
- Subject: Re: counting lines
- From: Michelle Steiner <email@hidden>
- Date: Thu, 12 Jul 2001 12:36:16 -0700
On 7/12/01 12:07 PM, Arthur Cormack <email@hidden> wrote:
>
a newbie question:
>
I am writing a script that uses bbEdit to open up a log file, and
>
change the date formats of every entry in that log file. I am having
>
a problem counting the number of lines in the logfile. The line that
>
I use to calculate the number of lines goes like this:
>
"set lineCount to the number of lines in text window 1"
>
And it always seems to return a number that is 1 less that the number
>
of lines.
>
-I have noticed, however, that If I manually add a hard return after
>
the last line (there wasn't one there before) then it works.
>
Is there another perhaps another term that I should be using to
>
calculate the number of lines in a text file?
Try counting paragraphs.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------