I'm trying to select text in the application window. Currently I'm trying to iterate through some found Texts and then after the change is made visually review the changes.
What I can't figure out is how to get the application to focus on the selection when its generated through ES? To clarify if you do a search with the GUI (ctrl+f) and change the Find what: field in the GUI, then click Find Next the application will selection the found Text and center the window around that selection.
At the point of line 04 I would like the application selection to appear within the InDesign Window.
arrFoundTexts = app.findGrep(); arrFoundTexts.changeGrep(); arrFoundTexts.select(); //tested and does not bring Text into GUI focus app.select(arrFoundTexts);//tested and does not bring Text into GUI focus
Thanks in advance for your time and care in helping me find the answer.
Text objects have a method called showText() which does does exactly as described above - not sure how I missed it.