Delete empty graphics frames inside table
Hi all
I need a script to delete all empty graphics frames inside all tables of a multi page document.
The following script deletes text frames in the document but does not delete them if they are inside a table.
var myGraphicFrames = app.activeDocument.rectangles;
for (i=myGraphicFrames.length-1; i>=0; i--) {
if (myGraphicFrames.graphics.length < 1)
myGraphicFrames.remove();
}
Anyone know how to rewrite this script so that it deletes graphic frames from within all tables as well?
I'm a total beginner at scripting so any help would be much appreciated.
Cheers
Mike
