Accepting Track changes in tables
We are trying to create a script to accept track changes
We are trying to create a script to accept track changes
Your code will still not get all the tables in the document. It will work only on the 1st level of nested tables. To get all the tables however deep they are nested in a table, try the following code
/*
https://community.adobe.com/t5/indesign-discussions/accepting-track-changes-in-tables/td-p/13181717
Script to get an array of all the talbes present in a document
Pre Requisite:- The script needs an open document
Warning :- No elaborate error checking
Author:- Manan Joshi
Guthub Repo :- https://github.com/Manan-Joshi/InDesign-Scripts.git
*/
function getTables(pCol){
var retval = [];
var tables = pCol.everyItem().tables.everyItem().getElements()
retval = retval.concat(tables)
for(var i = 0; i < tables.length; i++){
retval = retval.concat(getTables(tables[i].cells))
}
return retval
}
var tables = getTables(app.documents[0].stories)
-Manan
There is a conversation here:
https://community.adobe.com/t5/indesign-discussions/find-change-specific-tables/m-p/9760163
Search for the anchored character.
"<0016>"
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.