🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8548

Apple Script to Count Text Lines?

#8548
From: Ken Orth
Date: Wed, 11 Oct 2006 01:02
7 lines
1253 bytes
I'm running IDCS2 on a G5 Mac OS/X.
I need to count lines of text within a selected text frame up to a selected text string, note the count somehow, skip a few empty lines, then repeat the process.
The use (in case you're interested) is to bill, by line count, for multiple classified type ads that are all within one text frame so that they can flow from one page to the next in a small newspaper.
I am a former mainframe programmer with no experience at Apple Script, but I catch on fast.
Anything similar to this out there?
(Right now, two ladies are manually counting the lines. We won't put them out of work, we'll just give them more productive things to do).
Thanks for any help!
Technical Details
Message-ID: <3bc1eeaf.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,9768b27e6c138761,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ken Orth" <kc001@mac.com>
Newsgroups: adobe.scripting.indesign
Subject: Apple Script to Count Text Lines?
Message-ID: <3bc1eeaf.-1@webcrossing.la2eafNXanI>
Date: Tue, 10 Oct 2006 18:02:23 -0700
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing