3 Replies Latest reply on Jan 19, 2015 6:26 AM by Jump_Over

    [JS] Find/Change on all text frames on a single page?

    Skemp - ACE

      Hi,

       

      Is it possible to perform a .changeGrep() on all text frames on a single page only?

       

      This code gives me "myPageFrames.changeGrep() is not a Function"

       

      var  myPageFrames = myNewPage.textFrames;

           app.findGrepPreferences = app.changeGrepPreferences = null;

           app.findGrepPreferences.findWhat = ".+";

           app.findGrepPreferences.appliedCharacterStyle = myCharStyle;

           app.changeGrepPreferences.changeTo = "myChangetoText";

      myFinds = myPageFrames.changeGrep();

                 

       

      Thanks.