0 Replies Latest reply on Jun 18, 2013 11:55 PM by vaconcord

    script can't works with selected frames

    vaconcord

      var myStory = app.selection[0].parentStory;

      app.findGrepPreferences = NothingEnum.nothing;

      app.changeGrepPreferences = NothingEnum.nothing;

      app.findGrepPreferences.findWhat = "  +";

      app.changeGrepPreferences.changeTo = " ";

      myStory.changeGrep();

       

      This procedure works only with the first selected frame.

      How using this procedure for all selected frames?

       

      Thank!