• 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: counting lines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Follow-Ups:
    • Re: counting lines
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Folder Actions
  • Next by Date: OSX script -seeing new files uploaded via FTP?
  • Previous by thread: Re: counting lines
  • Next by thread: Re: counting lines
  • Index(es):
    • Date
    • Thread