Hello to all!
I am new to this forum and to have a simple Problem.
sorry for my bad english
i want select picture as a unit other than Pixel, but i can't
my code is :
var docRef = app.activeDocument;
app.preferences.rulerUnits = Units.CM;
app.preferences.Units = Units.CM;
var x = docRef.height ;
var x = new UnitValue( docRef.height,'CM');
docRef.selection.select(new Array (new Array(0,0),new Array(50,0), new Array(50,x), new Array(0,x)),
SelectionType.REPLACE, 0.0, false);
x value & type is CM But Selection is base of Pixel values
what is wrong !
