Copy link to clipboard
Copied
Hi all,
I've been working on indexing several documents, and am trying to find out if there are any scripts or other methods out there to automate the process. It would be so much easier if you could give InDesign a full list of terms and it will automatically tag them for the index, rather than finding and tagging each manually.
I did find a few scripts but they seem to be for much older versions.
I don't know anything about creating scripts myself.
Any leads/advice welcome! thanks!
This eschews the normal index feature, but will generate an index from a word list
https://creativepro.com/files/kahrel/indesign/index_from_wordlist.html
Copy link to clipboard
Copied
Copy link to clipboard
Copied
so, from the sounds of it, there's no simple solution?
Or, you can add the terms, but still have to run the "add all" for each term separately?
Note that I need to work with the InDesign index generator so that all the links and such will work for ebooks/ehanced PDF.
Copy link to clipboard
Copied
Do you work on Mac or a PC?
Copy link to clipboard
Copied
This eschews the normal index feature, but will generate an index from a word list
https://creativepro.com/files/kahrel/indesign/index_from_wordlist.html
Copy link to clipboard
Copied
Yes, I've seen this.
Again, I need to make sure the index terms are properly linked to the terms throughout the document, so this wouldn't work.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
No it doesn't.
Copy link to clipboard
Copied
No it doesn't.
By @brian_p_dts
I'm sorry, but have you seen the code?
Or my understanding of JavaScript is so bad?
...
new_topic = docs[i].indexes[0].topics.add (word_list[j]);
...
new_topic.pageReferences.add (found[k], PageReferenceType.currentPage);
...
Copy link to clipboard
Copied
Ah, had been a while since I actually used it. I thought it eschewed it. Or I may be thinking of another one of his. My bad.
Copy link to clipboard
Copied
I tried out the script, and it does indeed work! Yay!
Unfortunately it wipes out any exisitng index tagging so won't work on this particular project, but will on any that I'm starting an index from scratch.
So, solved! Thanks a bunch
Copy link to clipboard
Copied