How to move active page and cursor to findText result
I'm trying the following:
app.findTextPreferences = app.changeTextPreferences = null;
app.findTextPreferences.appliedParagraphStyle=app.activeDocument.paragraphStyles.itemByName("someParaStyle");
x=app.activeDocument.findText();
next=x[0];
app.activeDocument.activePage=next.parentPage;
What I want is for the active page on screen to change to the page that x[0] is on -- and for the cursor to be in the x[0] position.
Any suggestions how to do it?
(basically trying to add a "find next" capability to a script)
Thanks