2 Replies Latest reply on Dec 21, 2013 2:03 AM by Laubender

    How to change the multiple Paragraph Style's options altogether?

    MacFisher

      Dear All,

       

      I now received my german colleague's Indesign template, and it's all in German language and there are some paragraph style options not applicable in APAC.

       

      i need to apply changes to specific options to all paragraph styles.(please see below screen shots)

      is there any quick way to apply specific change (for example, i want all of them disable Hyphenation) to all the paragraph styles?

       

      Thank you.

      Snip20131220_5.pngSnip20131220_4.png

        • 1. Re: How to change the multiple Paragraph Style's options altogether?
          Grant H Level 4

          this solution depends on a few things:
          are the styles based on other styles?
          what are the global changes (eg. no hyphenation is one)

          • 2. Re: How to change the multiple Paragraph Style's options altogether?
            Laubender Adobe Community Professional & MVP

            @MacFisher – I think you could do that only by scripting.

             

            Here an example with ExtendScript (JavaScript), that disables hyphenation for all* paragraph styles, be them in groups or not.

             

            *all, but the two basic ones, the one seen in the UI as "Basic Paragraph" and the one that implicitly is always there when a paragraph is set to "Break Link to Style".

             

            var d=app.documents[0];
            var allMyParagraphStyles = d.allParagraphStyles;
            
            //We loop through the paragraph styles.
            //The loop does not start with 0, because 0 and 1 denote 
            //the two default, built in paragraph styles in every document
            
            for(var n=2;n<allMyParagraphStyles.length;n++){
                allMyParagraphStyles[n].hyphenation = false;
                };
            

             

            The scope of that snippet is the document, that has the focus (is the active one) of all open documents.

             

            But some words of warning:
            Prepare to see some overset text in your document after running the script.

             

            So test always on a duplicate of your doc…

             

            Uwe