• 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
count paragraphs in file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

count paragraphs in file


  • Subject: count paragraphs in file
  • From: BareFeet <email@hidden>
  • Date: Tue, 27 May 2008 14:31:05 +1000

to get the lines of a text file you could use this type of call


set filesLineCount to the count of every paragraph of (do shell script "cat '/Library/Application Support/Tod_Script/StoreInfo.txt'")
return filesLineCount

or more simply:

set filesLineCount to count paragraphs in (read POSIX file "/Library/Application Support/Tod_Script/StoreInfo.txt")

Tom
BareFeet

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Checking files on remotes help (From: Tod Hallberg <email@hidden>)
 >Re: Checking files on remotes help (From: Andy Boretto <email@hidden>)

  • Prev by Date: Re: Working with XML
  • Next by Date: Re: Selecting Last X Lines of Shell Script Result
  • Previous by thread: Re: Checking files on remotes help
  • Next by thread: Re: Checking files on remotes help
  • Index(es):
    • Date
    • Thread