Help on finding text and applying INDEX
hi forum,,
i m trying apply index founded words @ single click of "ui button created".
is possible.
this try.
app.findgreppreferences = app.changegreppreferences = null;
doc = app.activedocument.stories.everyitem();
app.findgreppreferences.findwhat = "policy";
found = app.documents[0].findgrep();
(i =0 ; i>found.length; i++) {
//fnd = found[i];
if (found.length > 0)
doc.indexes[0].topics.add(found);
app.select[found];
doc.pagereferences.add(found[i], pagereferencetype.currentpage );
}
thanks & regards,
rkids
any on forum..
More discussions in InDesign Scripting
adobe
Comments
Post a Comment