Forum Replies Created
-
AuthorPosts
-
June 4, 2010 at 2:37 am in reply to: Define table row heights, column widths in styles somehow? #55919
seb400
MemberThanks Jongware!
As much as I'm struggling with (basic) scripting, I must admit to enjoying that sort of simple logic that just doesn't feature in my 'designer' mindset
Steve
June 4, 2010 at 12:09 am in reply to: Define table row heights, column widths in styles somehow? #55917seb400
MemberThis 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
June 3, 2010 at 7:37 pm in reply to: Define table row heights, column widths in styles somehow? #52824seb400
MemberThanks Jongware!
As much as I'm struggling with (basic) scripting, I must admit to enjoying that sort of simple logic that just doesn't feature in my 'designer' mindset
Steve
June 3, 2010 at 5:09 pm in reply to: Define table row heights, column widths in styles somehow? #52822seb400
MemberThis 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
-
AuthorPosts