javascript - Target nested tables InDesign script -


i trying change width of column in nested table, isn't working. doing wrong? works fine when table not nested.

un-nested works:

app.activedocument.stories.everyitem().tables.everyitem().columns[0].width = "53mm"; 

nested doesn't work:

app.activedocument.stories.everyitem().tables.everyitem().tables.everyitem().columns[0].width = "53mm"; 

insert .cells.everyitem().texts[0] solve issue.

try code

app.activedocument.stories.everyitem().tables.everyitem().cells.everyitem().texts[0].tables.everyitem().columns[0].width = "53mm"; 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -