Hello,
I want to clear all overrides including text within tables. I thought I had the right script:
var myDoc = app.activeDocument;
myDoc.stories.everyItem().tables.everyItem().cells.everyItem().clearOverrides();
But this gives me the following error:
Error 24:Error string: myDoc.stories.everyItem().tables.everyItem().cells.everyItem().clearO verrides()
is not a function
What is wrong with the script?
Regards, Sjoerd
You can use the method "clearOverrides()" on "texts" objects like "characters", "words", "paragraphs" etc. and of course the whole "texts" object of a cell:
myDoc.stories.everyItem().tables.everyItem().cells.everyItem().texts[0].clearOverrides();
By that you will not clear overrides of "texts" in cells of tables that are nested inside tables…
Or tables that are nested into footnotes*…
(*I never noticed that or forgot about it, but it seems that the story editor cannot see into tables nested into footnotes!)
Uwe
North America
Europe, Middle East and Africa
Asia Pacific