10 Replies Latest reply on Nov 26, 2009 5:19 AM by Harbs.

    [CS4 JS] How to make search-replace on selected text frames

    Olivier.Berquin

      Hello everybody,

       

      I started programming with JavaScript (after AppleScript).

      I would like to make some Grep change on selected text frames.

       

      To make change in the first story:

      app.selection[0].parentStory.changeGrep();

      the second story

      app.selection[1].parentStory.changeGrep();

       

      etc.

       

      Is there a command to change this in one command?

      Something like this

      app.everyselection.parentStory.changeGrep();

       

       

      TIA.

       

      Oli.