Answered
Ripped out an old RGB to CMYK post and found a bug can anyone help with it?
New CUTTER color plate failed?
Suggestion to archive old posts once the issue is resolved.
/**
https://community.adobe.com/t5/indesign-discussions/indesign-script-to-convert-spots-to-cmyk-except-one/m-p/14489457#M566040
**/
#target indesign
app.activeDocument.inks.everyItem().convertToProcess = true;
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();
}
}
var myColorToCheck = app.activeDocument.colors.itemByName("CUTTER");
if (!myColorToCheck.isValid) { app.activeDocument.colors.add({ colorValue: [0, 100, 0, 0], name: "CUTTER" }); };
app.activeDocument.colors.everyItem().properties = { space: ColorSpace.CMYK, model: ColorModel.PROCESS };
app.activeDocument.colors.item("CUTTER").model = ColorModel.SPOT;

