Indesign - scripts - coated to uncoated


Well-known member
Before I ask my team to spend time creating this - does anyone know of a script that will take coated to uncoated?
Yes, I am aware there is a sweet EAL to do it after the fact in the pdf. Our procedure is to get it done in INDD.

Why do we do this? Because our digital press will attempt to emulate PMS XYZ with a coated set - causing major issues.
If we send over U - all is well.


Well-known member

Do you want to change the color or just the "label" of a pdf? Just converting or assigning don´t help?


Well-known member
Hi Kaiser,

If changing just the names of the colors will meet your needs, the following AppleScript should do the job:

tell application "Adobe InDesign 2021"
tell active document
set properties of swatch "Old Name of Swatch" to {model:spot, space:CMYK, name:"New Name of Swatch"}
end try
end tell

The caveat is that you would need a line of code for each PMS that needs changed and if the Pantones vary from file to file, the above script would need to be adapted accordingly.

Best regards,


Well-known member
According to Adobe Extendscript API you can create an INDD script which calls for a swatch (one at a time in the list of the available) and then describe that swatch as having a colorspace.
The library of API calls is here: INDD Color API
Extendscript is a sub set of javascript specific to Adobe products.

What About Profitability?

Canon 2022
The Video You Really
Need To Watch

Modern offset press performance comes with several nuances.
Chris Travis, Director of Technology at Koenig & Bauer, shares some details.
View The Video