简体   繁体   中英

Target nested tables InDesign script

I am trying to change the width of a column in this nested table, but it isn't working. What am I doing wrong? It works fine when the table is 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] will solve this issue.

try this code

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM