• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

stringIDToTypeID('workingCMYK') Statement not working in CC 2015

Engaged ,
Dec 15, 2015 Dec 15, 2015

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...

Screen Shot 2015-12-16 at 1.01.51 pm.png

-yajiv

TOPICS
Actions and scripting

Views

538

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Dec 16, 2015 Dec 16, 2015

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 16, 2015 Dec 16, 2015

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 16, 2015 Dec 16, 2015

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 16, 2015 Dec 16, 2015

Copy link to clipboard

Copied

Thanks Chris,

I think other then alternate way to resolve this problem.

-yajiv

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 16, 2015 Dec 16, 2015

Copy link to clipboard

Copied

Use

alert (descColorSettings.getType(stringIDToTypeID("workingCMYK")));

to determine if it is a String at all.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 16, 2015 Dec 16, 2015

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);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 17, 2015 Dec 17, 2015

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2015 Dec 17, 2015

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 17, 2015 Dec 17, 2015

Copy link to clipboard

Copied

Sure Chrish,

FYI..

Screen Shot 2015-12-17 at 5.37.52 PM.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2015 Dec 17, 2015

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 17, 2015 Dec 17, 2015

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2015 Dec 17, 2015

Copy link to clipboard

Copied

Which version of ICC Profile is it (you can open it in ColorSync Utility)?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 17, 2015 Dec 17, 2015

Copy link to clipboard

Copied

LATEST

We did not received the color profile. We have received only the color setting(.CSF) file only.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines