2 Replies Latest reply on Oct 21, 2009 9:03 AM by Marc Autret

    [cs3][JS]Find Enter with no text in Layout

    kumar1981 Level 1

      Hi,

       

         I need to find enter with no text(idle) in a Layout.I have used the following code.

       

              app.findGrepPreferences = NothingEnum.nothing;
              app.changeGrepPreferences = NothingEnum.nothing;

              app.findGrepPreferences.findWhat ="\n";
              app.findChangeGrepOptions.includeFootnotes = false;
              app.findChangeGrepOptions.includeHiddenLayers = false;
              app.findChangeGrepOptions.includeLockedLayersForFind = false;
              app.findChangeGrepOptions.includeLockedStoriesForFind = false;
              app.findChangeGrepOptions.includeMasterPages = false;
             
              var myFoundItems=new Array;
              myFoundItems=app.activeDocument.findGrep();
              var len=myFoundItems.length;
              alert(len);

       

      I don't know whether my approach is correct or not? Please suggest me.

       

       

       

      Regards

      Kumar