app.preferences.rulerUnits = Units.MM;
var w = activeDocument.width.value;
var h = activeDocument.height.value;
selReg = [[0,0 ],[0 ,h ],[w ,h ],[w,0 ]];
I would like to make a selection with ruler mm.
But I can't.
You may have to calculate the pixel values for your mm-values (taking the image’s resolution into account).
Retrieving data ...