Here you go.
make sure you change ('T ') to T and Three Spaces!
Paul.
var strtRulerUnits = app.preferences.rulerUnits;
var strtTypeUnits = app.preferences.typeUnits;
app.preferences.rulerUnits = Units.PIXELS;
app.preferences.typeUnits = TypeUnits.PIXELS;
Circle(0,0,300,300);
app.preferences.rulerUnits = strtRulerUnits;
app.preferences.typeUnits = strtTypeUnits;
function Circle(Top,Left,Bottom,Right) {
function cTID(s) { return app.charIDToTypeID(s); };
function sTID(s) { return app.stringIDToTypeID(s); };
var desc3 = new ActionDescriptor();
var ref1 = new ActionReference();
ref1.putProperty( cTID('Chnl'), cTID('fsel') );
desc3.putReference( cTID('null'), ref1 );
var desc4 = new ActionDescriptor();
desc4.putUnitDouble( cTID('Top '), cTID('#Pxl'), Top );
desc4.putUnitDouble( cTID('Left'), cTID('#Pxl'), Left );
desc4.putUnitDouble( cTID('Btom'), cTID('#Pxl'), Bottom );
desc4.putUnitDouble( cTID('Rght'), cTID('#Pxl'), Right );
desc3.putObject( cTID('T '), cTID('Elps'), desc4 );
desc3.putBoolean( cTID('AntA'), true );
executeAction( cTID('setd'), desc3, DialogModes.NO );
};