How do I seted a new document default type
hi everyone:
I want to the document type preset is "Default Photoshop Size" when i'n going to create a new document .how to setes Preferences?
Please help
I always make mistakes
var d = new ActionDescriptor();
var d1 = new ActionDescriptor();
d1.putBoolean(stringIDToTypeID("artboard"), false);
d1.putString(stringIDToTypeID("preset"), "Default Photoshop Size");
d.putObject(stringIDToTypeID("new"), stringIDToTypeID("Preferences"), d1);
executeAction(stringIDToTypeID("set"), d, DialogModes.NO);

