8 Replies Latest reply on May 11, 2014 9:54 PM by Trevorׅ

    Correct my 'keep option setting' script

    hasvi Level 1

      Hi,

       

      My task is I need to apply keep option setting (Paragraph styles     Keepoption     Start: 2 lines & End: 2 lines) for the all paragraph styles in the provided Indesign file.

      My script for that its working but it showing overrides on the paragraph styles. How to do the script for keep option without overrides.

       

      My script is:

       

       

      var doc = app.activeDocument;

      var myPara=app.activeDocument.stories.everyItem();

       

       

      {

      myPara.keepWithPrevious=false;

      myPara.keepWithPrevious=false;

      myPara.keepWithNext=0;

      myPara.keepLinesTogether=true;

      myPara.keepAllLinesTogether=false;

      myPara.keepFirstLines=2;

      myPara.keepLastLines=2;

      myPara.startParagraph=StartParagraph.ANYWHERE;

      }