Article View: adobe.scripting.indesign
Article #14936Re: (AS, CS) Relating page references to index subtopics
From: Cris_Lawrence
Date: Fri, 09 Jan 2004 18:34
Date: Fri, 09 Jan 2004 18:34
3 lines
2144 bytes
2144 bytes
Peter: I guess the major difference between us is that I am creating the page references at the same time I am creating the topic list. My topics are on a hidden 'keyword' layer and since my document represents a catalog, these keywords serve as my index. So I find all the text frames on the keyword layer and collect and parse the contents of each in turn. Where parsing reveals both a topic and subtopic, I create both. If that is all I do, I get a correct topic list in my index topic palete. The problem comes in when I make a page reference. Your description suggested my problem. The trouble (I think) was that I added the page reference to the topic I created, unaware that a subtopic addition essentially spawns a topic of its own. So my mistake, it seemed, was that I was not referencing the page to the topic that actually holds the subtopic. I thought I could simply correct this error by referencing the page to the parent topic of the subtopic. But I discovered that doing so gives me an "Invalid Object" error. In fact, I am not able to assess any of the subtopics properties (e.g., subtopic.name, subtopic.index, subtopic.parent, etc. - a bug???). I tried to get around this problem by fetching that topic as the topic having the largest index (since it was just created) and using that to make the page reference. But that strategy resulted in a mess. I will examine your approach and see if I can adapt it to my needs. Thanks again for all the help. - Cris
Technical Details
Message-ID:
<2ccf3c88.5@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccf3c88.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,ee2b3c498d942059 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-09 10:38:07 PST From: Cris_Lawrence@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: (AS, CS) Relating page references to index subtopics Message-ID: <2ccf3c88.5@webx.la2eafNXanI> Date: Fri, 9 Jan 2004 10:34:06 -0800 References: <2ccf3c88.-1@webx.la2eafNXanI> Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit