Skip to content

Instantly share code, notes, and snippets.

@elmimmo
Last active November 23, 2022 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elmimmo/07ce1dabac44315ca726d094398dd074 to your computer and use it in GitHub Desktop.
Save elmimmo/07ce1dabac44315ca726d094398dd074 to your computer and use it in GitHub Desktop.
Adobe InDesign scripts to convert spot ink swatches to process or set them to print as process
// DESCRIPTION: Sets existing spot color inks to print as process.
// Does not affect spot inks added after the script is ran, so rerun if necessary.
// Jorge Hernández Valiñani
#target indesign
(function () {
var myInks = app.activeDocument.inks;
for (var i = 0; i < myInks.length; i++) {
if (myInks[i].isProcessInk == false) {
myInks[i].convertToProcess = true;
}
}
}());
// DESCRIPTION: Converts spot color swatches to CMYK
// Jorge Hernández Valiñani
#target indesign
(function () {
var myColors = app.activeDocument.colors;
for (var i = 0; i < myColors.length; i++) {
if (myColors[i].model == ColorModel.SPOT) {
myColors[i].properties = {model:ColorModel.PROCESS, space:ColorSpace.CMYK};
}
}
}());
// DESCRIPTION: Converts spot color swatches to process
// Jorge Hernández Valiñani
#target indesign
(function () {
var myColors = app.activeDocument.colors;
for (var i = 0; i < myColors.length; i++) {
if (myColors[i].model == ColorModel.SPOT) {
myColors[i].properties = {model:ColorModel.PROCESS};
}
}
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment