1 Reply Latest reply on Jun 10, 2009 4:45 PM by Mityura

    [JS] Justify vertical table alignment in the TextFrame

    Mityura

      Advice is necessary!


      I impose big tables on page А3.

      That tables were identical, I change manually cell insets on millimeters, and even on the tenth shares of millimeter.
      How to make so that it was possible to increase or decrease top/bottom cell insets such as increase/decrease leading, point size, baseline shift and etc. with the certain increment (0.1 or 0.01 mm)

      Other ideas of alignment are possible?

      Yours faithfully!

        • 1. Re: [JS] Justify vertical table alignment in the TextFrame
          Mityura Level 1

          And my own answer! ))

           

          var myDocument = app.activeDocument
          var myCells = myDocument.selection[0].cells

          myNewCells = myCells[0].topInset

          myCells.everyItem().topInset = myNewCells + 0.1               // or 0.01, - 0.01 and so on...
          myCells.everyItem().bottomInset = myNewCells + 0.1        

           

          To appoint hot keys to everyone script, and go! ))