5 Replies Latest reply on Aug 8, 2017 4:45 AM by Sudha K

    Find Text from the selected Position

    Sudha K Level 1

      Hi,

       

           How we are searching the text (Find Text) in an InDesign manually from the position. Eg., In middle of the document placing the cursor and searching the text in document similarly I need to search the text.  How can i say that position is cursor selection and search using findtext preferences.

       

      app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;;                       

      app.findTextPreferences.appliedCharacterStyle = "E1";

      app.findTextPreferences.findWhat = "Search Content"

      //app.selection = 1851876449;

      var res = app.activeDocument.findText();

       

       

       

      Screen shot 2017-08-07 at 7.48.24 PM.png

       

       

           Need to select from 2nd superscript (ie, superscript)1.