Article View: adobe.scripting.indesign
Article #16668(AS) Indexing a book with page references
From: Shiro-Hagen
Date: Fri, 08 Aug 2003 09:53
Date: Fri, 08 Aug 2003 09:53
22 lines
1412 bytes
1412 bytes
Hi, I'm trying to automate scripting an index for a 500+ page book. I've got the script to index the page my list is on, but I can't get it to include the rest of the book documents. Any ideas? I'm new to scripting, but using a few samples here and there I've managed to put together the following: tell application "InDesign 2.0.2" set myDocument to active document tell myDocument set myStory to object reference of parent story of selection tell myDocument set myIndex to make index end tell tell myStory repeat with myCounter from 1 to (count paragraphs) tell myIndex set myPageReference to make page reference with include book documents true end tell end repeat end tell end tell end tell
Technical Details
Message-ID:
<1dea3f9d.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,d38bc05d3f7d8e9e,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-08-08 03:08:23 PST From: Shiro-Hagen <andi@russjamesdesign.co.uk> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: (AS) Indexing a book with page references Message-ID: <1dea3f9d.-1@WebX.la2eafNXanI> Date: Fri, 8 Aug 2003 02:53:07 -0700 Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit