Answered
What is the code that pops up the save dialog box?
If a document has not been saved, I want to pop up a prompt and a save dialog box at the same time.
var doc=app.activeDocument;
if (!doc.saved) {
alert("Please save the document first")
exit();
}
