How to get or set units?!
Hey Guys!
I have some extensions that measure the width and height...
but if the
Edit menu>> preferences >> units are in centimeter
the result of the measurement will be faaaarrr different than in pixels
like:
43 in cm
500000 in pixels...
is there any option for getting the units type or setting it permanently or temporarly?!?
I found this one but it didnt do anything:
app.scriptPreference.measurementUnit = app.MeasurementUnits.PIXELS;
any help would be appreciated!!
Thanks!!
Ben
