Is there a console or log for output from script events? I tried making a function, which executes an alert correctly, but doesn't create a new document. I can't find any way to see if this syntax is wrong or the command is just outdated.
In the code below, for example, I see the alert message, but no new document. I don't see anyway to see what's wrong with it and I pulled that line straight from the photoshop scripting guide.
var createDocument = function() {
alert("creating new doc!");
app.documents.add(2,4);
};