count paragraphs in file
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