Skip to main content
Known Participant
May 24, 2023
Answered

Include profiles to placed Images

  • May 24, 2023
  • 2 replies
  • 412 views

Hi,

 

I'm looking for an easy way to turn on 'include all profiles' on InDesign documents.

 

Currently most documents have 'include profiles' for RGB and 'preserve numbers' for CMYK. As this is the standard color settings.

 

I want to turn on 'include profiles' for CMYK on existing documents.

Currently the only way i know how to change this, is by making sure  'Ask when opening' is checked on with the policies. So that i get a popup window when opening the document where I can change the workspace and policies.

 

I wonder if there's any way to still change the color management policies of the document after opening it. I know you can change the profile of the document. But I cannot find a way to change the policies.

 

Here are some screenshots of what i mean(I'm sorry for it being in Dutch instead of English):

 

 

 

Hope it's clear enough.

Thank you for your time.

 

Best

Tim

This topic has been closed for replies.
Correct answer rob day

Hi @Tim De Vos , I think Eugene’s script changes the Application policy settings (Color Settings), but you want to change the policies for an existing document (which could be different) right? If that’s the case try this script, which imitates the Ask When... dialog.

 

Download and copy the script to your Scripts folder: Applications⁩ ▸ ⁨Adobe InDesign 20XX⁩ ▸ ⁨Scripts⁩ ▸ ⁨Scripts Panel⁩

 

 

https://shared-assets.adobe.com/link/44ccc51f-1c3d-458d-4249-15ecab654ece

 

 

The script’s dialog:

 

 

 

2 replies

rob day
Community Expert
rob dayCommunity ExpertCorrect answer
Community Expert
July 19, 2023

Hi @Tim De Vos , I think Eugene’s script changes the Application policy settings (Color Settings), but you want to change the policies for an existing document (which could be different) right? If that’s the case try this script, which imitates the Ask When... dialog.

 

Download and copy the script to your Scripts folder: Applications⁩ ▸ ⁨Adobe InDesign 20XX⁩ ▸ ⁨Scripts⁩ ▸ ⁨Scripts Panel⁩

 

 

https://shared-assets.adobe.com/link/44ccc51f-1c3d-458d-4249-15ecab654ece

 

 

The script’s dialog:

 

 

 

Community Expert
July 19, 2023

Thanks I was waiting to hear back from the OP on specfic needs too.

Just trying it out - and seems accessible so it was a starting point.

But you're much better at this side of things - thanks for this - very helpful as usual.

rob day
Community Expert
Community Expert
July 19, 2023

Hi Eugene, FWIW your script threw an error when I tried it—a document doesn’t have a .colorSettings property, so this won’t work:

 

  var doc = app.activeDocument;
  var colorSettings = doc.colorSettings;
  //returns Error: Object does not support the property or method 'colorSettings'

 

Documents do have .cmykPolicy and .cmykProfile properties, which can be set.

 
Community Expert
July 19, 2023

This will probably work if you put it in the Startup Scripts folder in the Scripts
It gives basic options - not sure if it meets your needs.

function createUI() {
  var dialog = new Window("dialog", "Color Management Policies");
  dialog.alignChildren = "left";


  var cmykGroup = dialog.add("panel", undefined, "CMYK Policy");
  cmykGroup.orientation = "row";
  var includeProfilesRadio = cmykGroup.add("radiobutton", undefined, "Include Profiles");
  var preserveNumbersRadio = cmykGroup.add("radiobutton", undefined, "Preserve Numbers");


  var okButton = dialog.add("button", undefined, "OK");
  var cancelButton = dialog.add("button", undefined, "Cancel");


  okButton.onClick = function () {
    var cmykPolicy = includeProfilesRadio.value ? ColorSettings.CMYK_POLICY_INCLUDEALL : ColorSettings.CMYK_POLICY_PRESERVE;


    if (app.documents.length > 0) {
      var doc = app.activeDocument;
      var colorSettings = doc.colorSettings;
      colorSettings.cmykPolicy = cmykPolicy;
      doc.save();
    }

    dialog.close();
  };

  cancelButton.onClick = function () {
    dialog.close();
  };

  dialog.show();
}