ianPark
9/11/2019 - 1:36 PM

Selection from Rectangular Coordinates

// MAKE RECTANGULAR SELECTION (X,Y)
var topLeft = [0,0];
var topRight = [500,0];
var bottomRight = [500,500];
var bottomLeft = [0,500];
var selectPoints = [topLeft, topRight, bottomRight, bottomLeft];
app.activeDocument.selection.select(selectPoints, SelectionType.REPLACE);