Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

Words from index Panel - TOPIC and apply page references.

$
0
0

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...


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>