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?

#52816

Okay — perhaps this javascript is all you need. It will change the first row of each table in your entire document to the height you specify (in regular shorthand notation, e.g., “0.125in” or “1.2cm”). Fortunately — or not –, it doesn't matter whether it's a “header” row or a regular one.

Pay attention now, because last time I inserted a script of this length it was completely overlooked. (…)

Ready?

app.activeDocument.stories.everyItem().tables.everyItem().rows[0].height = “12mm”; // <- Change me!

Okay — that was it. Don't let its length fool you; a lot of thought went into it :-)

Copy, paste into a plain text editor (Notepad, Textedit — in plain text mode — or Adobe's own ESTK Editor), and save as “ChangeFirstRowsTo20mm.jsx” into your User Scripts folder. You don't have to do anything but double-click the script and sit back.

(Given the speed it works at, you might not even have time to sit back.)

This article was last modified on May 21, 2010

Comments (0)

Loading comments...