Copy link to clipboard
Copied
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
x[0].showText();
... should do it.
Ariel
Copy link to clipboard
Copied
x[0].showText();
... should do it.
Ariel
Copy link to clipboard
Copied
thanks. works great