🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18796

page number cross reference

#18796
From: Scott Hofmann
Date: Tue, 18 Feb 2003 17:41
19 lines
2406 bytes
I made a post in the ID2 forum and was suggested to use scripting to achieve my goal.If scripting is the answer can someone give me some clues on how to script such a task? maybe even a sampling of such a script to get me started.

Here are my initial thoughts on the script:

- Select "alphabetical listing" story (not sure how I tag a particular story in a ID file so I can use it as a reference in a script)
- Go to first paragraph (^p) first word (which is tha last name in each instance)
- Copy this last name
- Use the name to do a find in the "state" story
- Some how mark/tag the found last name in the state story
- Then enter a page reference at the end of the first paragraph in the "alphabetical listing" story using the mark/tag on the found last name in the "state" story
- Repeat the above steps for each consecutive last name found in the "Alphabetical listing" story until I reach the end of the story.
Now hopefully i would have a page number at the end of each person's name in the "Alphabetical listing" story that points back to the page that shows them in the "state' story

Question posted in ID2 forum:
How do i make a page number reference in ID2? I think this is what it would be refered to as.

I have a big phone directory that list people by state. In the back of the book i have all the names listed alphabetically as a cross reference. In the past this alphabetical listing just showed you what state a person would be listed under. Now i would like it to list what page they are on instead (or in addition to).
How do you make a marker for each name in the states area to show it's page number in the alphabetical listing area for that person name?
-Scott
Technical Details
Message-ID: <1de7e872.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,acd9fff77efe397d,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-02-18 10:08:07 PST
From: "Scott Hofmann" <shofmann@ccli.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: page number cross reference
Message-ID: <1de7e872.-1@WebX.la2eafNXanI>
Date: Tue, 18 Feb 2003 09:41:28 -0800
Lines: 35
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit