3 Replies Latest reply on Nov 9, 2016 3:38 AM by Peter Kahrel

    Code to be evaluated! [007] // Grep Research and Text Frame …

    Obi-wan Kenobi Adobe Community Professional

      Hi Scripters,

       

      I make a Grep research on a "XXX" para style and I want, after, to manipulate the text frame containing the paras I found!

       

      So, is this code correct to begin?

       

       

      var myDoc = app.activeDocument;        
      app.findGrepPreferences = app.changeGrepPreferences = null;
      app.findGrepPreferences.appliedParagraphStyle = "XXX";
      var myFound = myDoc.findGrep();
      for(var F = 0; F < myFound.length; F++)  
          {
              var myTextFrame = myFound[F].parent.textFrames;
              //………
          }
      

       

       

      Thanks in advance! 

       

      (^/)