5 Replies Latest reply on Sep 20, 2016 5:03 AM by tpk1982

    change paragraph style point size for overset text

    jakec88782761 Level 2

      Hi Guys,


      I can't work this out at all.


      I want to incrementally reduce the point size of the text in an overset text frame.

      I want to reduce the point size relative to each paragraph style e.g. body text is 9pt and subheading is 10pt, so body text should reduce to 8.5pt and subheading to 9.5pt.



      var myDoc = app.activeDocument;

          myTextFrame = myDoc.textFrames;

          for (i=0;i<myTextFrame.length;i++){

      while (myTextFrame[i].overflows)

          myTextFrame[i].ParagraphStyles.everyItem().pointSize -=0.5;



      This is what I have but I cant seem to access the paragraph styles.


      Any suggestions?