Hello All,
After reading the few thread about adding Pagereferences... I need a help.....
I want to add pageReferences using the words listed in index panel / Topics.
Some specific words are listed only Topics and no page references found inside (as some one removed the pagereferences (~I) inside the document.... because of this i cant able to generate INDEX and get page numbers ....
This tried with this little bit try; the result is nothing;
MyStory = app.activeDocument.stories.everyItem();
var PRefs = app.documents[0].indexes.item(0).topics.everyItem().getElements();
StoryTopics = [];
for (i = 0; i < PRefs.length; i++)
if (PRefs == MyStory)
PRefs[i].parent.push (StoryTopics);
MyStory[i].pageReferences.add(PRefs, PageReferenceType.currentPage);
thanks forum...