1 Reply Latest reply on Jan 25, 2016 10:27 AM by KuddRoww

    How to get InDesign to focus on text selection

    KuddRoww Level 1

      Hi All,


      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[0].select(); //tested and does not bring Text into GUI focus
      app.select(arrFoundTexts[0]);//tested and does not bring Text into GUI focus


      Thanks in advance for your time and care in helping me find the answer.