5 Replies Latest reply on Mar 23, 2016 11:07 PM by pixxxel schubser

    Batch change Paragraph Styles ruleAboveLineWeight and ruleAboveOffset measurements

    jaredmstone

      Hi I’m trying to write a javascript that targets multiple paragraph styles at once, and changes their settings with one or two clicks, instead of changing each instance manually.

       

      First, I want to change the ruleAboveOffset measurement for five specific Paragraph styles (ex. H1, H2, H3, H4 and H5) to let’s say 20points

       

      Then, I want to subtract the ruleAboveLineWeight (different line weight for each H1, H2, H3, H4 and H5) from the ruleAboveOffset measurement changed in first step

       

      So if Paragraph style H1 has a ruleAboveLineWeight of 3pt, the final ruleAboveOffset measurement would be 17pt (20pt minus 3pt)

       

      Ultimately, I might be changing up to 10 styles at a time, and that’s a lot of clicking and inputting.

       

      Thanks in advance for your expertise!