Hi John,
Try this.
var doc = app.activeDocument, _selection = app.selection[0], _object = []; if(_selection instanceof Table) { for(var i =0;i<_selection.rows.length;i++) { var con =""; for(var j =0;j<_selection.rows[i].contents.length;j++) { con +=_selection.rows[i].contents[j]; } if(con != "") { _object.push(_selection.rows[i]); app.select(_selection.rows[0]); app.select(_selection.rows[i], SelectionOptions.ADD_TO) } else { break; } } } else { alert("Select a table") }
Regards,
Chinna