Reply To: Scripts for Table Header and Footer

#85627
Ari Singer
Member

This should convert all your tables’ last rows to footer rows:

app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Process Table");
function main(){
    allTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
    for (aTable=0; aTable<allTables.length; aTable++)
    allTables[aTable].rows[-1].rowType = RowTypes.FOOTER_ROW;
    }

This article was last modified on June 9, 2016

Comments (0)

Loading comments...