Copy link to clipboard
Copied
Hi there,
looks like Indesign doesn't apply the .clearOverrides() method to empty frames or cells.
I'm working on a table whose cell tables overrides needs to be cleared using a script.
I would expect that paragraph style linked to the cell style are cleared too, but they are not.
So I apply .clearOverrides() to the cells, then to the paragraphs.
Unfortunately, empty cells are not caught...
My workaround is to add a space in those empty cells, but I'm sure there is a much proper way to do it...
Thanks
Vinny
Any empty textframe or cell contains nevertheless an insertion point and the .clearOverrides() method can be applied to it, using something like that while selecting the textframe/cell
app.activeDocument.selection[0].insertionPoints[0].clearOverrides();
that can be included in a loop to fix multiple selected textframes or cells depending on how you want to use the script…
Copy link to clipboard
Copied
Any empty textframe or cell contains nevertheless an insertion point and the .clearOverrides() method can be applied to it, using something like that while selecting the textframe/cell
app.activeDocument.selection[0].insertionPoints[0].clearOverrides();
that can be included in a loop to fix multiple selected textframes or cells depending on how you want to use the script…
Copy link to clipboard
Copied
Aaaah!
Just perfect! Thanks a lot ![]()
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more