Article View: adobe.scripting.indesign
Article #8570Re: Apple Script to Count Text Lines?
From: Ken Orth
Date: Wed, 11 Oct 2006 13:38
Date: Wed, 11 Oct 2006 13:38
5 lines
1443 bytes
1443 bytes
This text frame typically will contain multiple (50 to 100) "ads" which are 10 to 50 lines each, separated from one another by 2 or more blank lines. The ads do not have any imbedded blank lines. An ad cannot be considered to be a paragraph because it may contain several paragraphs butted together. The process could be this... Inside a loop: 1) starting from the first non-blank line, count lines until you hit a blank line, 2) save the count (I'm really not sure how to do this), 3) skip over and do not count any blank lines, then (back to 1) start counting again for the next "ad" by counting lines until you hit a blank line. Repeat the loop until you hit the end of the text frame. Then display the list of counters? Could the counters be displayed, for example, on a separate layer on top of each ad in big red numbers?
Technical Details
Message-ID:
<3bc1eeaf.1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news1.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc1eeaf.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,9768b27e6c138761 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ken Orth" <kc001@mac.com> Newsgroups: adobe.scripting.indesign Subject: Re: Apple Script to Count Text Lines? Message-ID: <3bc1eeaf.1@webcrossing.la2eafNXanI> Date: Wed, 11 Oct 2006 06:38:56 -0700 References: <3bc1eeaf.-1@webcrossing.la2eafNXanI> Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news1.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing