3 Replies Latest reply on Oct 2, 2018 7:24 AM by Klaas vT

    Make change to all Document Styles using a script

    Awitmer Level 1

      Hello all! I am writing the script below and am needing some help. I am

      wanting to change the language setting in all of the document paragraph

      styles to German but when I use the "everyItem" property of paragraphStyles

      it does not change any of the style definitions. Could somebody please give

      me some help and directions? Thanks a million!

       

       

       

      #target indesign

       

      var myDocument = app.activeDocument;

       

      var myStyles = myDocument.paragraphStyles.lastItem();

       

      var myStyle = myStyles;

       

          try{

       

                myStyle.appliedLanguage = "German: 2006 Reform";

       

                alert("The language settings for all of the paragraph styles have

      been changed to German: 2006 Reform.")

       

                }

       

          catch(e){}