1 person found this helpful
The script languages show measurements in credit-card number size decimals, that's ok.
To check the reported bounds against what you see in the Transform panel, select the top-left anchor to check the first two values of the geometric bounds, the bottom-right one to check the last tw values of the bounds. Also bear in mind the Transform panel gives you x and y values of the selected anchor and the width and height of the frame whereas the geometricBounds gives you top, left, bottom, and right of a frame, so that you need to calculate the width and height.
Well what Peter has suggested is correct. You will getting the top, left,
bottom, right coordinates of an object.
I normally use to set my rulers to "mm" for better view or calculations
for such purposes. Depends upon choice
//Set the ruler option at zero point and change measurement units to mm
myDoc.zeroPoint = Array(0,0)
var myOldXUnits = horizontalMeasurementUnits;
var myOldYUnits = verticalMeasurementUnits;
horizontalMeasurementUnits = MeasurementUnits.millimeters;
verticalMeasurementUnits = MeasurementUnits.millimeters;
Thanks to both of u!!....