Reply To: Define table row heights, column widths in styles somehow?

Home Page / Forums / General InDesign Topics (CLOSED) / Define table row heights, column widths in styles somehow? / Reply To: Define table row heights, column widths in styles somehow?

#55917
seb400
Member

This little script will prove invaluable for me!

I have amended above suggestions to give me the column widths for a particular table.

However I would like to be able to define a 'row depth' for all the remaining rows of a table below the two specified rows.

app.activeDocument.stories.everyItem().tables.everyItem().rows[0].height = “15mm”;
app.activeDocument.stories.everyItem().tables.everyItem().rows[1].height = “8mm”;

app.activeDocument.stories.everyItem().tables.everyItem().columns[0].width = “8mm”;
app.activeDocument.stories.everyItem().tables.everyItem().columns[1].width = “36mm”;
app.activeDocument.stories.everyItem().tables.everyItem().columns[2].width = “37mm”;
app.activeDocument.stories.everyItem().tables.everyItem().columns[3].width = “7.5mm”;
app.activeDocument.stories.everyItem().tables.everyItem().columns[4].width = “7.5mm”;
app.activeDocument.stories.everyItem().tables.everyItem().columns[5].width = “7.5mm”;
app.activeDocument.stories.everyItem().tables.everyItem().columns[6].width = “7.5mm”;
app.activeDocument.stories.everyItem().tables.everyItem().columns[7].width = “7.5mm”;
app.activeDocument.stories.everyItem().tables.everyItem().columns[8].width = “7.5mm”;

MTIA Steve

This article was last modified on June 4, 2010

Comments (0)

Loading comments...