Copy link to clipboard
Copied
Hi Everyone!
stringIDToTypeID('workingCMYK') Statement not working in CC 2015.
(Thanks to Chris for this code)
var ref = new ActionReference();
ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
var appDesc = executeActionGet(ref);
var descColorSettings = appDesc.getObjectValue(stringIDToTypeID( "colorSettings" ));
var rgbProfile = descColorSettings.getString(stringIDToTypeID("workingRGB"));
var cmykProfile = descColorSettings.getString(stringIDToTypeID("workingCMYK"));
alert(rgbProfile+"\n"+cmykProfile);
anyone explain why and tell me the alternate statement...
-yajiv
Copy link to clipboard
Copied
Works for me on 2015.1.1 on Mac OS 10.9.5.
What is the CMYK Working Space when you check manually?
Is it a Custom CMYK?
Copy link to clipboard
Copied
Hi Chris,
This Scrips is working in CC 2014 but throw error on some CC 2015.
- yes its custom CMYK work space.
I don't know why?
-yajiv
Copy link to clipboard
Copied
Sorry, I can’t seem to be able to reproduce the issue except with a Custom CMYK.
How exactly do you process the information further?
Wrapping that line it in a try-clause (and using the catch-clause to create a warning for example) might be an alternative.
Copy link to clipboard
Copied
Thanks Chris,
I think other then alternate way to resolve this problem.
-yajiv
Copy link to clipboard
Copied
Use
alert (descColorSettings.getType(stringIDToTypeID("workingCMYK")));
to determine if it is a String at all.
Copy link to clipboard
Copied
Could you try this?
var ref = new ActionReference();
ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
var appDesc = executeActionGet(ref);
var descColorSettings = appDesc.getObjectValue(stringIDToTypeID( "colorSettings" ));
var rgbProfile = descColorSettings.getString(stringIDToTypeID("workingRGB"));
var theCMYKType = descColorSettings.getType(stringIDToTypeID("workingCMYK"));
if (theCMYKType == DescValueType.RAWTYPE) {
var cmykProfile = descColorSettings.getData(stringIDToTypeID("workingCMYK"));
} else {
var cmykProfile = descColorSettings.getString(stringIDToTypeID("workingCMYK"));
};
alert(rgbProfile+"\n"+cmykProfile);
Copy link to clipboard
Copied
Hi Chrish,
Thank for your reply. Alert message shows entire attributes of color profile, not a name which is used.
-yajiv
Copy link to clipboard
Copied
Then it appears to be a Custom Profile and not a regular ICC Profile.
Could you please post a screenshot of Color Settings with the CMYK-dropdownlist expanded?
Copy link to clipboard
Copied
Sure Chrish,
FYI..
Copy link to clipboard
Copied
Sorry, I was wrong and it seems to be a regular profile.
What kind of ICC Profile is this? Who provided it?
Copy link to clipboard
Copied
Hi Chrish,
At last one old customer gave to us. Its working till CC2014 not in CC2015.
Any how thanks for your continued supports and guide me well.
-yajiv
Copy link to clipboard
Copied
Which version of ICC Profile is it (you can open it in ColorSync Utility)?
Copy link to clipboard
Copied
We did not received the color profile. We have received only the color setting(.CSF) file only.