0 Replies Latest reply on Mar 27, 2013 7:23 AM by jhsnm

    Scipt to Rename Paragraph Styles on Several Files

    jhsnm

      Hi all!

      I am a newbie here. First at all I wanted to thank you soooo much for sharing all your knowledge with others, thanks!

      Now here my question: I need to change the name of a bunch of Indesign files (they all have the same Paragraph style names).

      Can it based on following script (thanks Vamitul and Jongware for this script)? If so what should be changed?

      Thank you.

       

      var doc=app.activeDocument;
      var myPstyles=doc.allParagraphStyles, l=myPstyles.length;
      while (l--){
      try{

      myPstyles[l].name=myPstyles[l].name.replace("Old Style","New Style");
      }catch(e){}

      }
      alert ("Done!\nYou can go outside and play now");