Question
Check document profile, mode and bit depth using scripts
Hello,
Is there a way to check document's profile, mode and bit depth using scripts? I know it is possible to chage it using:
app.activeDocument.changeMode
app.activeDocument.convertProfile
app.activeDocument.convertBitDepthbut I want to check it first, so basically something like:
if(app.activeDocument.Profile !== "Adobe RGB (1998)") {
var result = confirm ("Wrong color profile. Do you want to change it?", false);
...(rest of the code here)...
}but this doesn't seem to work.
Any help will be appreciated! Thank you in advance.
