I'm beginning in scripting using ps-dom. What I want is to create a new document, that is 120x200, followed by adding another layer to the current document. The following code isn't working ?
var psdoc = app.documents.add(120,200)
psdoc.activeDocuments.layers.add()