How to get a dimension artboard and selection with UnitRuler.Milimetter?
When i use app.activeDocument.width & app.activeDocument.selection  .width it returns the pixel parameter
You would need to multiply the ratio of whichever unit you like, by making it proportionate to the point units of 72.
If your unit is inch, it would be 1 = 72, but if it's millimeters, it's 1 = 2.83465
Retrieving data ...