// transparenteTabellenzellenkonturlinien.jsx if (app.selection.length > 0) { var _table = get_table(app.selection[0]); if (_table != null) { with (_table.cells.everyItem()) { bottomEdgeStrokeType = null; innerColumnStrokeType = null; innerRowStrokeType = null; leftEdgeStrokeType = null; rightEdgeStrokeType = null; topEdgeStrokeType = null; } } } function get_table(_obj) { var t = _obj; if (t.hasOwnProperty('baseline') && t.parent.parent.constructor.name == 'Table') t = t.parent.parent; else if (t.constructor.name == 'Cell') t = t.parent; else if (t.constructor.name != 'Table') t = null return t; }