how to select with intersection?
I don't understand how to make an intersection selection.
I tried the following code with a 600 x 800 pixels document with a simple background layer:
var originalRulerUnits = app.preferences.rulerUnits; // valeur actuelle Ruler
app.preferences.rulerUnits = Units.PIXELS;
var originalTypeUnits = app.preferences.typeUnits; // valeur actuelle prefs
app.preferences.typeUnits = TypeUnits.PIXELS;
app.activeDocument.selection.selectAll();
// trying to select a 10px "frame"
app.activeDocument.selection.select([[10, 10], [10, 780], [580,780], [580, 10] ], SelectionType.INTERSECT);
No intersection is done, new selection replaces the existing one.
Thank you for your help.
