Question
IDCS2 Win: Why doesn't the dialog reflect the change?
Hello Everyone:
I am building this short script that is meant to reset color settings to a uniform Company-wide standard:
****************** code starts here *****************
app.colorSettings.enableColorManagement = true;
var ListLength = app.colorSettings.cmsSettingsList.length;
var a;
for(a = 0; a < ListLength; a++)
{
if(app.colorSettings.cmsSettingsList == "IDCS2_WPC1")
break;
}
if(a >= ListLength)
{
alert("Warning: IDCS2_WPC1 is not in your Color Settings list. Please have Production Support install it.");
exit();
}
app.colorSettings.cmsSettings = "IDCS2_WPC1";
app.colorSettings.cmykPolicy = ColorSettingsPolicy.preserveEmbeddedProfiles;
app.colorSettings.rgbPolicy = ColorSettingsPolicy.preserveEmbeddedProfiles;
****************** code ends here *****************
As far as I can tell, app.colorSettings.cmsSettings maps to the "Settings" field on the Color Settings dialog under the Edit
drop down menu. Yet, when I finish executing this script and call up the Color Settings dialog, the Settings field is still set to
"Custom." So what am I missing here? Is there an extra step that I need to perform?
FYI, the for loop breaks on about the fifth loop; evidence that the settings file that I am looking for exists.
TIA!
John
I am building this short script that is meant to reset color settings to a uniform Company-wide standard:
****************** code starts here *****************
app.colorSettings.enableColorManagement = true;
var ListLength = app.colorSettings.cmsSettingsList.length;
var a;
for(a = 0; a < ListLength; a++)
{
if(app.colorSettings.cmsSettingsList == "IDCS2_WPC1")
break;
}
if(a >= ListLength)
{
alert("Warning: IDCS2_WPC1 is not in your Color Settings list. Please have Production Support install it.");
exit();
}
app.colorSettings.cmsSettings = "IDCS2_WPC1";
app.colorSettings.cmykPolicy = ColorSettingsPolicy.preserveEmbeddedProfiles;
app.colorSettings.rgbPolicy = ColorSettingsPolicy.preserveEmbeddedProfiles;
****************** code ends here *****************
As far as I can tell, app.colorSettings.cmsSettings maps to the "Settings" field on the Color Settings dialog under the Edit
drop down menu. Yet, when I finish executing this script and call up the Color Settings dialog, the Settings field is still set to
"Custom." So what am I missing here? Is there an extra step that I need to perform?
FYI, the for loop breaks on about the fifth loop; evidence that the settings file that I am looking for exists.
TIA!
John