• 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: Line count of a referenced text file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Line count of a referenced text file? (From: "Marc K. Myers" <email@hidden>)

  • Prev by Date: Re: Line count of a referenced text file?
  • Next by Date: Crontab v. Applescript & Command Line
  • Previous by thread: Re: Line count of a referenced text file?
  • Next by thread: Re: Line count of a referenced text file?
  • Index(es):
    • Date
    • Thread