Tables - Row Height and Cell Insets
I am working on ascript to do the following:
1. Set the first Row of all tables in my doc to these settings:
- Row Height = .25in
- Top and Bottom Inset = .04in
2. Set rest of the cells to these settings:
- Row Height = .12in
- Top and Bottom Inset = .12in
Here is where I am at:
app.activeDocument.stories.everyItem().tables.everyItem().rows[0].height = ".25 in";
app.activeDocument.stories.everyItem().tables.everyItem().rows[0].topInset = ".04 in";
app.activeDocument.stories.everyItem().tables.everyItem().rows[0].bottomInset = ".04 in";
for( x = 1; x < app.activeDocument.stories.everyItem().tables.everyItem().rows.length; x++ ) {
app.activeDocument.stories.everyItem().tables.everyItem().rows
}
for( x = 1; x < app.activeDocument.stories.everyItem().tables.everyItem().rows.topInset; x++ ) {
app.activeDocument.stories.everyItem().tables.everyItem().rows
}
for( x = 1; x < app.activeDocument.stories.everyItem().tables.everyItem().rows.bottomInset; x++ ) {
app.activeDocument.stories.everyItem().tables.everyItem().rows
}
I keep getting this error and I am stuck.

Anyone see anything that would help?
Thanks in advance.
