1 person found this helpful
I'm not sure if it's such a good idea to use the string "table" as a
variable name. Things can get very confused that way (especially if you
happen to use an "with" statements)
Anyway, to select the last row of a table, this should work:
I'm new to scripting, and am not sure how the myTable function works or how to set it up.
So I tried adding this in:
table.rows[-1].select().cells.texts.everyItem().appliedCharacterStyle = "myriad regular";
but when I run the script, I get the error message "undefined is not an object."
table.rows is a colection of object so using [-1] index is a correct way
but cells.texts generates an error. Modify it to:
table.rows[-1].cells.everyItem().texts.everyItem().appliedCharacterStyle = "myriad regular";
Yes, that worked -- thanks!