Can I control a rectangle's anchor on the left with a script up or down (like in the picture).
var Rctngl=0;
var var_Integer;
mm = 2.834645731787465
var_Integer =Rctngl;
var_Integer = prompt ("Rectangle ?", var_Integer);
{ Rctngl = Math.floor (var_Integer)*mm }
app.activeDocument.defaultStroke = true;
app.activeDocument.defaultStrokeWidth = 4;
app.activeDocument.defaultFilled = false;
var box = app.activeDocument.layers[0].groupItems.add()
box.pathItems.rectangle (0, 0, Rctngl*2, Rctngl*2);
setEntirePath
instead of rectangle