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

Popular posts from this blog

Embed interactive SWF in PDF - losing interactivity

Falang and too many redirects - Joomla! Forum - community, help and support

bonjour sur reader comment je change mon imprimante par defaut