Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
var oDocTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
if (oDocTables.length)
oDocTables = GetAllTables(oDocTables);
alert(oDocTables.length);
function GetAllTables(oTables)
{
for(var i=0; i < oTables.length; i++)
{
var oCells = oTables.cells;
for (var j=0; j < oCells.length; j++)
{
var oCellTables = oCells.tables.everyItem().getElements();
if (oCellTables.length)
{
oTables = oTables.concat(oCellTables);
}
}
}
return oTables;
}
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Find more inspiration, events, and resources on the new Adobe Community
Explore Now