Highlighted

InDesign Script to Convert All Colors to Process CMYK

Participant ,
Mar 21, 2017

Copy link to clipboard

Copied

I regularly do prepress work for large projects that will have RGB colors and/or spot colors. These documents should have been designed only using process CMYK, but hey, designers are designers, so I need to fix them. I know I can convert manually in the palette or via ink manager, but was wondering if anyone has a script that will do that for me on an open, active indesign document. That would be so much quicker as I can just run that as a default on all documents.

Thanks.

Hi,

Try tis code:

var myDoc = app.activeDocument;

app.activeDocument.colors.everyItem().properties = {space:ColorSpace.CMYK};

app.activeDocument.colors.everyItem().properties = {space:ColorSpace.CMYK, model:ColorModel.PROCESS};

TOPICS
Scripting

Views

2.2K

Likes

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

InDesign Script to Convert All Colors to Process CMYK

Participant ,
Mar 21, 2017

Copy link to clipboard

Copied

I regularly do prepress work for large projects that will have RGB colors and/or spot colors. These documents should have been designed only using process CMYK, but hey, designers are designers, so I need to fix them. I know I can convert manually in the palette or via ink manager, but was wondering if anyone has a script that will do that for me on an open, active indesign document. That would be so much quicker as I can just run that as a default on all documents.

Thanks.

Hi,

Try tis code:

var myDoc = app.activeDocument;

app.activeDocument.colors.everyItem().properties = {space:ColorSpace.CMYK};

app.activeDocument.colors.everyItem().properties = {space:ColorSpace.CMYK, model:ColorModel.PROCESS};

TOPICS
Scripting

Views

2.2K

Likes

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
Mar 21, 2017 0
Engaged ,
Mar 21, 2017

Copy link to clipboard

Copied

Hi,

Try tis code:

var myDoc = app.activeDocument;

app.activeDocument.colors.everyItem().properties = {space:ColorSpace.CMYK};

app.activeDocument.colors.everyItem().properties = {space:ColorSpace.CMYK, model:ColorModel.PROCESS};

Likes

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
Reply
Loading...
Mar 21, 2017 2
Participant ,
Mar 21, 2017

Copy link to clipboard

Copied

Just to clarify, since  don't write script, is this JS or apple script?

Likes

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
Reply
Loading...
Mar 21, 2017 0
Engaged ,
Mar 21, 2017

Copy link to clipboard

Copied

Hi,

This is JavaScript..

Likes

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
Reply
Loading...
Mar 21, 2017 1
Participant ,
Mar 21, 2017

Copy link to clipboard

Copied

Thanks! I will try this at work tomorrow. 🙂

Likes

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
Reply
Loading...
Mar 21, 2017 0
Participant ,
Mar 22, 2017

Copy link to clipboard

Copied

Holy Crap! This is great! Thank you so much!

Likes

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
Reply
Loading...
Mar 22, 2017 0
Adobe Community Professional ,
Mar 22, 2017

Copy link to clipboard

Copied

Hi bfrankphoto,

are the result CMYK values as expected?

Regards,
Uwe

Likes

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
Reply
Loading...
Mar 22, 2017 0
Participant ,
Mar 22, 2017

Copy link to clipboard

Copied

Yeah, it does. I just did a test with several RGB colors and a couple pantone spots, made a note of the CMYK equivalent. All of them came out correctly after the script ran. Well done Ananth@desgin

Likes

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
Reply
Loading...
Mar 22, 2017 0
Guide ,
Mar 22, 2017

Copy link to clipboard

Copied

For better use var myDoc = app.documents[0] instead of var myDoc = app.activeDocument;

Likes

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
Reply
Loading...
Mar 22, 2017 0
Engaged ,
Mar 23, 2017

Copy link to clipboard

Copied

Hi tpk,

Thanks for your better ideas. It will helpful for me.

Thanks for your wonderful support!!!!!!.

Thanks,

Prabu G

Likes

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
Reply
Loading...
Mar 23, 2017 0
Community Beginner ,
Jun 30, 2019

Copy link to clipboard

Copied

Hi, I would like to have a modified version of this.
I need to have everything converted to CMYK, leaving PMS spots untouched. I just need to get rid of RGBs and Labs via scripting. Is it possible?

The thing arises from an issue I have in a specific document. The publisher is using an automated proprietary "Q-checker" plugin to verify the document, and the plugin says this document "does not contain only CMYK or SPOT colors" meaning there's something hidden that is still in RGB or Lab. Thing is, it's not a linked file, because Indesign's own preflight function won't find anything. I also already tried to use the swatches palette to add unnamed colors, but nothing comes up. I'm at a loss.

It may be a locked, invisible object in a group, almost certainly anchored in text. It's thousands of these and I can't check them all by hand.

Thanks.

Likes

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
Reply
Loading...
Jun 30, 2019 0
Most Valuable Participant ,
Jul 18, 2020

Copy link to clipboard

Copied

If images have RGB images, even with spot coloros, the correct way is to keep them in RGB and never convert them before exporting the INDD file to a PDF.

 

Likes

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
Reply
Loading...
Jul 18, 2020 0
New Here ,
Jul 18, 2020

Copy link to clipboard

Copied

Hi Ananth2,
First of all thanks for the scripts, it was working great uptill the 2020 version came in, i tries to fiddel things around, but no luck, can there be a similar script for indesign 2020 version ?

Likes

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
Reply
Loading...
Jul 18, 2020 0
rob day LATEST
Adobe Community Professional ,
Jul 18, 2020

Copy link to clipboard

Copied

You don’t really need a script—select all of the swatches and set the Color Type and Color Mode to change all.

 

Screen Shot 2.pngScreen Shot 3.png

Likes

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
Reply
Loading...
Jul 18, 2020 0