🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8559

Re: Apple Script to Count Text Lines?

#8559
From: Shane_Stanley
Date: Wed, 11 Oct 2006 11:28
21 lines
1842 bytes
On 11/10/06 11:02 AM, "Ken Orth" <member@adobeforums.com> wrote:

> 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.  

You're going to have to be more specific. Getting the number of lines in a
selection is easy:

 count of lines of selection

Similarly, getting the number of lines up to and including the selection:

    set x to index of insertion point -1 of selection
    count of lines of text from character 1 to character (x - 1) of parent
of selection

But things like "skip a few lines" and "repeat the process" are too vague.

-- 
Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID: <C153126A.3118C%sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing
References: <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: Shane_Stanley@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: Apple Script to Count Text Lines?
Message-ID: <C153126A.3118C%sstanley@myriad-com.com.au>
Date: Wed, 11 Oct 2006 04:28:10 -0700
References: <3bc1eeaf.-1@webcrossing.la2eafNXanI>
Lines: 29
Received: from bld-mail02.adl2.internode.on.net [203.16.214.66] by adobeforums.com; Wed, 11 Oct 2006 04:31:56 -0700
Received: from [192.168.1.2] (unverified [59.167.75.174])  by mail.internode.on.net (SurgeMail 3.2f) with ESMTP id 241053727  for <adobe.scripting.indesign@adobeforums.com>; Wed, 11 Oct 2006 20:58:12 +0930 (CST)
Return-Path: <sstanley@myriad-com.com.au>
User-Agent: Microsoft-Entourage/11.2.5.060620
Thread-Topic: Apple Script to Count Text Lines?
Thread-Index: AcbtKFSSkviRUFkbEduWAgARJHm3nA==
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing