How to draw a rectangle in millimeters?
I want a script to create a rectangle in millimeters. Even when the file is set to "mm" the resulting rectangle is drawn in Points. I can multiply my dimensions by 2.834645669 to attain the correct dimension. Is there a more elegant way to do this? Here's what works so far ("80" and "8" will be replaced by variables).
var doc = app.activeDocument
var myLayer = doc.activeLayer
var mm = Number (2.834645669)
myLayer.pathItems.rectangle ( 200, 200, 80*mm, 8*mm);