Find all Tables in InDesign Document
function getAllTables(dok) {
allTables = [];
app.findTextPreferences = NothingEnum.NOTHING;
app.findTextPreferences.findWhat = "<0016>";
var result = dok.findText();
for (var i =0 ; i < result.length; i++) {
allTables[i] = result[i].tables[0];
}
return allTables;
}