7 Replies Latest reply on Apr 21, 2017 10:35 AM by Obi-wan Kenobi

    Problem with script

    mikevine1 Level 1

      I want to find an existing paragraph style and change it to a new paragraph style. I found a script below, but I receive an error message when running it in InDesign CS6:

       

      var old = app.activeDocument.paragraphStyles.itemByName("style-1"); var new = app.activeDocument.paragraphStyles.itemByName("style-2"); old.remove(new);

       

      I'm new the scripts. Please help?

      Thanks! Mike

       

      Screen Shot 2017-04-21 at 10.05.23 AM.png