Try this:
if (app.activeDocument.colorProfileType == ColorProfileType.NONE) {
alert("This image does not have a Color Profile");
} else {
alert("The Color Profile of this image is: " + doc.colorProfileName);
}
Try this:
if (app.activeDocument.colorProfileType == ColorProfileType.NONE) {
alert("This image does not have a Color Profile");
} else {
alert("The Color Profile of this image is: " + doc.colorProfileName);
}