3 Replies Latest reply on Mar 16, 2016 12:05 AM by selvam214

    Increase count the paragraph

    selvam214 Level 1

      Hi,

      Could you please help to complete my code.

       

      Here is my workflow:

      1. Choose chapter one text

      2. Select next and next paragraphs from my selection point

      3. Word count length up to 2500, select up to that paragraphs and copy.

       

      var mydoc = app.activeDocument;

      var myFirstChap = mydoc.selection[0].paragraphs[0];

      alert(myFirstChap.contents); // how to increase the paragraphs count?

       

      My selection point here:

      Screen shot 2016-03-15 at 2.33.02 PM.png