12 Replies Latest reply on Jul 28, 2015 8:54 AM by jimsuds2

    Check and Set color settings on startup of InDesign CS6 and CC

    jimsuds2

      Is there a way to check which csf settings file is selected each time InDesign starts up? I've tried scripting it with a javascript script that supposedly worked with CS4. The field that is referenced "app.colorSettings.cmsSettings" is not being recognized as a valid field.

       

      Here's the script:

      var settCol = "Our-Color-settings-name";
      var isSet = app.colorSettings.cmsSettings;
      if (isSet != settCol){
      var userinput = confirm("Do you want to change your color settings?\nYou have " + isSet + " color settings selected\n\nWe recommend changing if you are doing work for the catalog!", true);
      if (userinput == true) {
      app.colorSettings.cmsSettings = settCol;
      (alert("You have the " + settCol + " selected.\n\nTo change this select Color Settings from Edit menu"));
      }
      }
      else {
      alert("You have color settings " + isSet + " selected.\n\nTo change this select Color Settings from Edit menu.");
      }


      Thanks

        • 1. Re: Check and Set color settings on startup of InDesign CS6 and CC
          rob day Adobe Community Professional & MVP

          It seems ok. If you have to use JS ask over in the Scripting forum. If you are using OSX this Applescript works:

           

          tell application "Adobe InDesign CC 2014"

              set mySetting to "SETTING NAME"

              set currSetting to CMS settings of color settings

             

              if currSetting is not mySetting then

                  display dialog "Do you want to change your color settings? You have " & currSetting & " color settings selected. We recommend changing if you are doing work for the catalog!" buttons {"Keep", "Change"}

                  if the button returned of the result is "Change" then

                      try

                          set CMS settings of color settings to mySetting

                      end try

                  else

                      return

                  end if

              end if

          end tell

          • 2. Re: Check and Set color settings on startup of InDesign CS6 and CC
            jimsuds2 Level 1

            The applescript works as long as something other than "Emulate Adobe InDesign 2.0 CMS off" is selected as the Color Settings. I get this error: ("Adobe InDesign CC2014 got an error: The property is not applicable in the current state." number 30615) when that is selected. Unfortunately this is the setting I need to make sure is picked in the color settings as we do all color management elsewhere in the workflow. Maybe I'm going about this the wrong way, is there a field that is set when CMS is off?

            Thanks in advance!

            • 3. Re: Check and Set color settings on startup of InDesign CS6 and CC
              jimsuds2 Level 1

              I found this script step that seems to set it correctly in CS6, need to try newer versions: set properties of color settings to {enable color management:false}

              • 4. Re: Check and Set color settings on startup of InDesign CS6 and CC
                rob day Adobe Community Professional & MVP

                Yes you can check for that and turn on CM like this:

                 

                tell application "Adobe InDesign CC 2014"

                    set mySetting to "SETTING NAME"

                    try

                        set currSetting to CMS settings of color settings

                    on error

                        set currSetting to ""

                    end try

                   

                    if currSetting is not mySetting then

                        display dialog "Do you want to change your color settings? You have " & currSetting & " color settings selected. We recommend changing if you are doing work for the catalog!" buttons {"Keep", "Change"}

                       

                        if the button returned of the result is "Change" then

                            try

                                set enable color management of color settings to true

                                set CMS settings of color settings to mySetting

                            end try

                        else

                            return

                        end if

                    end if

                end tell

                • 5. Re: Check and Set color settings on startup of InDesign CS6 and CC
                  jimsuds2 Level 1

                  Thanks!

                   

                  I just had to change this line

                  set enable color management of color settings to true

                  to

                  set enable color management of color settings to false

                   

                  and it was good to go.

                   

                  Thanks again!

                  • 6. Re: Check and Set color settings on startup of InDesign CS6 and CC
                    rob day Adobe Community Professional & MVP

                    I need to make sure is picked in the color settings as we do all color management elsewhere in the workflow.

                    Oh I missed that–your actually trying to set the Color Settings to Emulate Adobe InDesign 2.0 CMS off? How can you color manage somewhere else in the workflow without any source profiles (which is what happens when you create a new doc with CMS off)?

                    • 7. Re: Check and Set color settings on startup of InDesign CS6 and CC

                      a312185@@Gmail.com

                      2015/7/28 上午7:07於 "rob day" <forums_noreply@adobe.com>寫道:

                      >?

                      Check and Set color settings on startup of InDesign CS6 and CC

                      created by rob day in InDesign - View the full discussion

                      >

                      • 8. Re: Check and Set color settings on startup of InDesign CS6 and CC
                        jimsuds2 Level 1

                        We do it at the PDF level through our rip.

                        • 9. Re: Check and Set color settings on startup of InDesign CS6 and CC
                          rob day Adobe Community Professional & MVP

                          With CMS off there can't be any assigned profiles in the exported PDF, so do you just guess what the source space is when you CM the PDF? When there's a placed RGB image how would you know whether it's sRGB, ProPhotoRGB, or something else when your RIP converts it to CMYK?

                           

                          If you are trying to protect document CMYK values that can be done without turning off CMS.

                          • 10. Re: Check and Set color settings on startup of InDesign CS6 and CC
                            jimsuds2 Level 1

                            All stripped images are converted via Photoshop upstream. They are double checked by our workflow before being placed into InDesign.

                            • 11. Re: Check and Set color settings on startup of InDesign CS6 and CC
                              rob day Adobe Community Professional & MVP

                              All stripped images are converted via Photoshop upstream.

                               

                              So everything in the layout is final CMYK and you are trying to get the values output unchanged—you're not really making an additional CMYK conversion at the RIP right?

                               

                              Turning off CM in ID will export CMYK with no profile (DeviceCMYK), but it also screws up the CMYK preview of the layout because the display of CMYK color is dependent on a CMYK profile. I guess if you don't care about the color display and are going by the numbers turning of CM is OK, although you'd still have to worry about any conversions made by the designer inside the layout (the Color Picker makes color managed conversions).

                               

                              You can also export as DeviceCMYK without turning off CM. A document with this Color Setting exported to the default PDF/X-4 or X-1a preset would export all CMYK color as DeviceCMYK and keep any RGB color profiled. The CMYK CM Policy could also be set to Off. The CMYK working space would match your PS destination profile so now the Photoshop preview and the InDesign layout preview will match.

                               

                              Screen Shot 2015-07-28 at 10.58.40 AM.png

                              • 12. Re: Check and Set color settings on startup of InDesign CS6 and CC
                                jimsuds2 Level 1

                                Yea, the preview doesn't matter here. The type of work we do is strictly by the numbers. All of the design work happens in Photoshop.