Ask a Question related to Adobe Indesign Macintosh, Design and Development.
-
Ken Orth #1
Automated Text Line Count?
I am helping convert a weekly newspaper over to InDesign.
Legal ads are billed per column line. Currently they the lines manually with a ruler. I have found that I can count lines in an InDesign text box thru the info window. This will still make counting lines a semi-manual process, though probably better than using a ruler.
I am wondering if there is a plug-in of somekind that might count lines from multiple text boxes and then display/print the totals.
Ken Orth Guest
-
placeholder text with word count embedded
Anyone still have that old (REALLY old) placeholder text from Pagemaker that had every 25 or 50 words counted out so when you placed the text you... -
text line spacing and line tool
1.) Using InDesign 2.0.2 - When aligning text (in one particular text frame)to a base grid, the text will always skip one line even though the base... -
TextArea line count
is there a way to count the number of lines in a textarea with wordwrap? -
Text.line
Hi, I need to do a data transfer from an file .txt to cast member, but I need between the transfer, be make a division of text and in this before... -
Query- Count how many occurances of certain text in a column
Hi everybody, First time I've posted in this group so go easy on me :-). Hopefully somebody can help. My website runs off an SQL database and I'm... -
rob_day@adobeforums.com #2
Re: Automated Text Line Count?
Ken, This script displays the line count of the parent story of the selected text:
tell application "InDesign CS"
set mydoc to active document
try
set mySel to selection
set myClass to class of selection
on error
display dialog "Select some text and try again"
return
end try
set linecounts to {}
if myClass is text then
set linecounts to count of every line of parent story of selection
else
display dialog "Select some text and try again"
return
end if
display dialog "Total lines in selected story: " & linecounts
end tell
==========
This one displays the entire document's line count:
tell application "InDesign CS"
tell active document
set linecounts to {}
tell every story
set linecounts to linecounts & (count every line)
end tell
set total to 0
set totalstories to count every item of linecounts
repeat with i from 1 to totalstories
set total to total + (item i of linecounts)
end repeat
display dialog "Total lines in " & totalstories & " stories: " & total
end tell
end tell
==========
If you need compiled versions I can post them.
Rob
rob_day@adobeforums.com Guest
-
Arnold_German@adobeforums.com #3
Re: Automated Text Line Count?
Rob,
Who wouldn't like compiled versions? :)
Arnold_German@adobeforums.com Guest
-
rob_day@adobeforums.com #4
Re: Automated Text Line Count?
<http://www.evansday.com/scripts/LineCounts.hqx>
rob_day@adobeforums.com Guest
-
rob_day@adobeforums.com #5
Re: Automated Text Line Count?
This one is probably more useful to Ken:
<http://www.evansday.com/scripts/LineCountTag.hqx>
Puts a line count tag in the upper left corner of first text frame of every story. The tags are in a new layer, so they can be easily deleted.
Rob
rob_day@adobeforums.com Guest
-
Ken Orth #6
Re: Automated Text Line Count?
Good man yourself!
Did you just write this? I am not fluent (yet) in Apple Script, but I am impressed.
Can we make the added line count text red so that it shows up better?
(Is that looking a gift horse in the mouth?)
This is just what I need.
Ken
Ken Orth Guest
-
rob_day@adobeforums.com #7
Re: Automated Text Line Count?
Can we make the added line count text red so that it shows up better?
(Is that looking a gift horse in the mouth?)
Almost, except you can fix it yourself outside of the script. The script makes a paragraph style named Story Line Count. After running the script just change the style's color (or any other attributes) from Black to whatever you want.
rob_day@adobeforums.com Guest
-
Ken Orth #8
Re: Automated Text Line Count?
I figured the color thing out while I was in the shower just now.
A little problem is that the script creates the style every time it runs and gets an error if it already exists. I assume that once the style is created, I'll just remove or comment out the "create style" lines from the script. I'm learning, slow but sure.
Thanks so much!
ken
Ken Orth Guest
-
rob_day@adobeforums.com #9
Re: Automated Text Line Count?
putting it in a try statement would be better—try before and end try after:
try
set InfoStyle to make paragraph style with properties {name:"Story Line Count", applied font:"Lucida Grande", font style:"Bold", fill color:swatch "Black", point size:7, justification:center align}
end try
rob_day@adobeforums.com Guest



Reply With Quote

