#target indesign
function main () {
if (app.selection.length != 2) {
return false;
};
var item_0 = app.selection[0];
var item_1 = app.selection[1];
var gb_0 = item_0.geometricBounds;
var gb_1 = item_1.geometricBounds;
item_0.move([gb_1[1], gb_1[0]]);
item_1.move([gb_0[1], gb_0[0]]);
return true;
}
main ();