#target photoshop if (documents.length == 0) { alert("nothing opened"); } else { // start //setup var file = app.activeDocument; var selec = file.selection; //run var bnds = selec.bounds; // get the bounds of current selection var // save the particular pixel values xLeft = bnds[0], yTop = bnds[1], xRight = bnds[2], yBottom = bnds[3]; var newRect = [ [xLeft-95,yTop -300], [xLeft-95,yTop+550], [xLeft + 1400,yTop + 550], [xLeft + 1400,yTop - 300] ]; // set coords for selection, counter-clockwise selec.deselect; selec.select(newRect); // end }