Article View: adobe.scripting.indesign
Article #17593A simple footnote model
From: Guy Verville
Date: Fri, 30 May 2003 11:47
Date: Fri, 30 May 2003 11:47
21 lines
2341 bytes
2341 bytes
Hi, My purpose is to create a footnote system that can be tagged before importing into InDesign. 1. The footnote number in the text will be defined by a character style dedicated to this task. 2. The footnotes will be contained in flowing text boxes (one file). 3. I'm using VB Studio.Net for doing the task. 4. Since during edition, footnotes can be deleted, added, or swapped, I need a script that will sort the numbers found inside the character tag, and renumbers the footnotes themselves. While it can be done easily in exporting as tagged text and scripting for a dealing with ANSI text, I would have like be able to run my script inside InDesign. I have difficulty with the Object Model of ID. I don't have much clues about how to make a simple find and operations of the following nature: a) From the main Story. Search for a text with character style "NoteNumber" b) Count them. c) Now go to the "Note Layer" d) Find notes paragraphs, count them. e) Should be equal with NoteNumber count. f) Renumber the text found in "NoteNumber". (of course, this mean only one story. This is enough for the moment) g) Renumber footnotes found in the "Note Layer". The process is certainly easy, but I lack a good knowledge of the Object Model. Something is eluding me. Is there, somewhere, a good, web or printed, explanation of it? Is there someone here that can guide me about what might be the solution? Thanks in advance. I know there is a commercial addon for footnotes, but the main drawback I ses in it is that I can't pretag my notes before importing in InDesign. This is essential for me. saA Guy
Technical Details
Message-ID:
<1de95549.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newsfeeds.sol.net!hammer.uoregon.edu!logbridge.uoregon.edu!xmission!nntp.infostrada.it!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,aa16bd12e0e1253e,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-30 05:18:20 PST From: "Guy Verville" <taddeus@spamcop.net> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newsfeeds.sol.net!hammer.uoregon.edu!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: A simple footnote model Message-ID: <1de95549.-1@WebX.la2eafNXanI> Date: Fri, 30 May 2003 04:47:17 -0700 Lines: 35 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit