Tuesday, March 30, 2010

[JS] Justify vertical table alignment...

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!

[JS] Justify vertical table alignment...

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! ))

No comments:

Post a Comment