Reply to topic  [ 4 posts ] 
Line Counts 
Author Message

Joined: 2008-02-26 13:46:29
Posts: 18
Can anyone suggest a way to count lines? Counting "\n" occurrences would do. I'm looking to get this number into a "$variable"


2008-03-11 17:40:49
User avatar

Joined: 2003-09-30 21:33:58
Posts: 351
Post \n
if you do a find all of '\n'

it will highlight all new lines and then in the finder window list all the \n that were found

It seems like an applescript should work to, but I am just learning that...

...and not that fast

I have never let my schooling interfere with my education/Mark Twain (1835-1910)

2008-03-11 20:59:41

Joined: 2008-02-26 13:46:29
Posts: 18
Great suggestion... I can view the count in statistics or capture it to a variable in a macro. Thanks.

2008-03-13 08:37:59
Official Nisus Person
User avatar

Joined: 2002-07-11 17:14:10
Posts: 4251
Location: San Diego, CA
The Find macro command returns the number of occurrences that matched, so it should be as simple as:

$newlineCount = Find All "\n"

2008-03-13 12:04:17
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software