#target photoshop cTID = function(s) { return app.charIDToTypeID(s); }; sTID = function(s) { return app.stringIDToTypeID(s); }; // New Doc function NewDoc() { // Make function step1(enabled, withDialog) { if (enabled != undefined && !enabled) return; var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO); var desc1 = new ActionDescriptor(); var desc2 = new ActionDescriptor(); desc2.putClass(cTID('Md '), sTID("RGBColorMode")); desc2.putUnitDouble(cTID('Wdth'), cTID('#Rlt'), 570); desc2.putUnitDouble(cTID('Hght'), cTID('#Rlt'), 380.16); desc2.putUnitDouble(cTID('Rslt'), cTID('#Rsl'), 300); desc2.putDouble(sTID("pixelScaleFactor"), 1); desc2.putEnumerated(cTID('Fl '), cTID('Fl '), cTID('Wht ')); desc2.putInteger(cTID('Dpth'), 8); desc2.putString(sTID("profile"), "none"); desc1.putObject(cTID('Nw '), cTID('Dcmn'), desc2); desc1.putInteger(cTID('DocI'), 850); executeAction(cTID('Mk '), desc1, dialogMode); }; step1(true, true); // Make }; NewDoc.main = function () { NewDoc(); }; NewDoc.main();
... View more