2 Replies Latest reply on Feb 7, 2014 4:52 AM by Beliakov

    How to assign number one to numbered list? [CS6-jsx]

    Beliakov Level 1

      Can't change first para number in numbered list.

      var myText = app.selection[0].paragraphs;
      mstyle = app.activeDocument.paragraphStyles.item("body_numbered");
      for (i=0; i < myText.length; i++) {
      with (myText[i])
      {
      applyParagraphStyle (mstyle, false);
      }
      }
        myText[0].spaceBefore = 2;
        myText[0].numberingStartAt = 1; // does not change the first number of the list
        myText[-1].spaceAfter = 2;