0 Replies Latest reply on Jul 27, 2011 10:51 PM by mangalarajiv

    Change Color Settings through scripting

    mangalarajiv

      function ColorSettings() {
      ColorSettingsOptions = new ColorSettingsOptions();
      ColorSettingsOptions.Settings = Settings;Custom;
      ColorSettingsOptions.Settings.WorkingSpaces.RGB = RGB;sRGB.IEC61966-2.1;
      ColorSettingsOptions.Settings.WorkingSpaces.CMYK = CMYK;U.S.WebCoated(SWOP);
      ColorSettingsOptions.Settings.WorkingSpaces.Gray = Gray;DotGain20;
      ColorSettingsOptions.Settings.WorkingSpaces.Spot = Spot;DotGain20;
      ColorSettingsOptions.ColorManagementPolicies.RGB = RGB;ConverttoWorkingRGB;
      ColorSettingsOptions.ColorManagementPolicies.CMYK = CMYK;ConverttoWorkingCMYK;
      ColorSettingsOptions.ColorManagementPolicies.Gray = Gray;ConverttoWorkingGray;
      ColorSettingOptions.ColorManagementPolicies.ProfileMismatches.AskWhenOpening = true;
      ColorSettingOptions.ColorManagementPolicies.MissingProfiles.AskWhenOpening = true;
      activeDocument.ColorSettingOptions(ColorSettings,true);
      };

       

      please check the script if any thing wrong Could you please reply me?

       

      thanks,

      Rajiv.s