InDesign script to convert Spots to CMYK - except one.
I found a close script on another site which works in the most recent version of InDesign. It's a culmination of 2 users posts, Jongware and Masood Ahmad, so credit to them. It removes unused colours, adds unnamed colours and converts all to CMYK:
#target indesign
app.menuActions.item("$ID/Add All Unnamed Colors").invoke();
var myIndesignDoc = app.activeDocument;
var myUnusedSwatches = myIndesignDoc.unusedSwatches;
for (var s = myUnusedSwatches.length-1; s >= 0; s--) {
var mySwatch = myIndesignDoc.unusedSwatches[s];
var name = mySwatch.name;
if (name != ""){
mySwatch.remove();
}
}
app.activeDocument.colors.everyItem().properties = {space:ColorSpace.CMYK, model:ColorModel.PROCESS};
Further to this, I'd like to ask if anyone knows how to keep a particular colour as a spot, say for example the colour CUTTER. Currently I have to convert all the colours with this script then go back and make the CUTTER a spot again, so I'd like a failsafe way for myself and the junior team members to avoid any issues when sending print files to production.
Appreciate any help.
