Copy link to clipboard
Copied
Hi All
Started to rebuild a new index for the next edtition of a 500 page manual
I used the existing INDEX template and found it difficult and confusing to remove all the redundant markers etc
This worked a treat - cleaned everything with no ghost markers to be found
Step 1.
Step 2. (can you believe it?)
Tah DAH - all index markers are deleted and your old index is clean ready to rebuild
Whew!! you're welcome
All this SHOULD be an ID single click menu option. WHY?
You can use this one-liner to remove all index markers and all topics:
app.documents.everyItem().indexes.everyItem().topics.everyItem().remove();
With your method you don't remove cross-references, by the way.
Copy link to clipboard
Copied
You can use this one-liner to remove all index markers and all topics:
app.documents.everyItem().indexes.everyItem().topics.everyItem().remove();
With your method you don't remove cross-references, by the way.
Copy link to clipboard
Copied
Thanks Peter
What you've written there makes no sense to me, but if it works for you, good!
sean
Copy link to clipboard
Copied
This doesn't work for me in ID 2025. After deleting all of the index markers (there were only a few), each topic (there are hundreds, inherited from a previous book) still has a page icon with the letters "PN" next to it (in the References button). When you click on "Go to reference," nothing happens. When you generate the index, there are no page numbers next to the entries. But when you try to "Remove Unused Topics" from either the References or Topics button, nothing happens. Have to delete each topic one at a time.
Copy link to clipboard
Copied
When you delete index markers the way Sean described (find index markers and replace with nothing) you remove the page references, not the topics. To remove topics, use that one-line script I showed. That will of course also remove any associated page references. Did you try that?
Copy link to clipboard
Copied
Sorry, I have no idea how to "use a script," not being a programmer. I assumed that "Remove Unused Topics" in the Index drop-down menu was supposed to remove unused topics. I'm open to using a script, but I would need instructions for how to do it. Thanks.
Copy link to clipboard
Copied
1. Create a text file (using a plain-text editor) with just the one-liner and save it as delete-all-topics.jsx.
2. Open InDesign's Scripts panel (Window > Utilities > Scripts), right-click the User folder, select 'Open in Finder' (or Explorer). This opens the Scripts folder in your file manager.
3. Copy the jsx file to the Scripts Panel folder.
You'll see the script in the Scripts panel.
To run the script. double-click it.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now