app.activeDocument; //<[Document Untitled]:> var docName = app.activeDocument.name; // just name.ext fileFullPath = app.activeDocument.fullName; // full path to file fileFolderPath = app.activeDocument.path; // full path to parent folder of the file, no end / index = (docName.name).indexOf("."); fileName = (docName.name).substr(0, index); // file name with ext