🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14836

Re: Creating large page-refrenced index

#14836
From: Shane_Stanley
Date: Tue, 13 Jan 2004 21:44
36 lines
2200 bytes
On Jan 14, 2004, at 8:16 AM, McKinley Media wrote:

> 1: I need to search for each name in the front section and enter the 
> page numbers where these names are found in the back.

You have a couple of choices: search page by page, or get the 
references to the found entries, and work out the pages they belong to 
from there. The former will probably be the best method, although it 
probably depends on the document.
>
> 2: I need to create page titles that tell the category ranges on a 
> given page. Each of these categories has a paragraph style 
> "myCategories". I have been having trouble searching on a given page 
> for information.

Try something like this:

tell application "InDesign CS"
		set find preferences to nothing
		set change preferences to nothing
	tell document 1
		set theStyle to paragraph style "myCategories"
		search (every item of all page items of page 1 whose class is text 
frame) with find attributes {applied paragraph style:theStyle}
	end tell
end tell

> 3: When I place text, I specify "autoflowing on", which works for 
> creating the correct number of pages initially. After I modify the 
> formatting of the text, however, I need more pages. Is there some way 
> to auto flow that text after the fact?

No. You'll need to check for overflow, and add frames as needed.

--
Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID: <A598E31C-4611-11D8-B512-003065D61B90@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccf5a44.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,12300b1d3de5c250
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-13 14:08:05 PST
From: Shane_Stanley@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: Creating large page-refrenced index
Message-ID: <A598E31C-4611-11D8-B512-003065D61B90@myriad-com.com.au>
Date: Tue, 13 Jan 2004 13:44:21 -0800
References: <2ccf5a44.-1@webx.la2eafNXanI>
Lines: 38
X-Mailer: Apple Mail (2.609)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit