Skip to main content
Participant
November 16, 2015
Question

Need to select ALL tables

  • November 16, 2015
  • 1 reply
  • 2780 views

Hi,

I import Word documents in InDesign CC, wich contains several tables.

I need to select ALL tables and then change the size of the text inside the cells and I need to change the table strokes inside and the table-border.

I know how to install a script in InDesign – though I have not yet tried to work with a script ...

... hope my first time will be succesfull :-))))

Hope that somebody can help me.

Regards,

Pia (graphic designer)

This topic has been closed for replies.

1 reply

tpk1982
Legend
November 17, 2015

hi..

try this

change the values as your requirement:

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().paragraphs.everyItem().pointSize = "3pt";

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().topInset = "3pt";

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().bottomInset = "3pt";

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().leftInset = "3pt";

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().rightInset = "3pt";

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().bottomEdgeStrokeWeight = "0.5";

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().topEdgeStrokeWeight = "0.5";

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().leftEdgeStrokeWeight = "0.5";

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().rightEdgeStrokeWeight = "0.5";

Participant
November 17, 2015

It works :-)))))) thanks to you I just run my first script ever :-)))))

Looking forward to changing the sizes.

You are awesome – thanks a million :-))))) and have a great day.

Regards,

Pia

tpk1982
Legend
November 18, 2015

Hey Pia,

Which size need to change?

Also please give correct answer if it works fine.

Have a nice day

karthi