Skip to main content
November 18, 2010
Question

Suppress warning profile

  • November 18, 2010
  • 1 reply
  • 986 views

Hi,

How is possible during open of a single file using AppleScript to suppress warning about color policy (profile present/mismatch)?

The command seems present only in batch.

Stefano

This topic has been closed for replies.

1 reply

JJMack
Community Expert
Community Expert
November 18, 2010

Edit your Photoshop Color setting and uncheck the prompt on mismatch boxes.

JJMack
November 18, 2010

Hi,

Of course I considered your workaround.

But having preset with checkbox enabled and WITHOUT change them how is possible from code to bypass the warnings?

This was original question.

Stefano

JJMack
Community Expert
Community Expert
November 18, 2010

I believe you would need to turn the prompts off. You May be able to automate that in a script using  Scriptlistner code to save the current color setting, then turn the prompts off. Do the operation that may produce the prompt then restore the color settings. When you save and load Color setting they are stored in

"C:\Documents and Settings\User ID\Application Data\Adobe\Color\Settings\*.csf" on a Windows XP system locations vary with OS. You may want to generate a unique name to save the current setting and delete that file after reloading the settings. The name though will remain around as the current color settings in the color setting dialog. Also APP colorSettings string Read-write. The name of the current color settings, as selected with Edit > Color Settings.  from the Photoshop JavaScripting guide you may be able to play around with that string..... To get the current setting csf file set one with the prompts off then restore the original settings after the operation that may cause a prompt.. like

var saveColorsettings = app.colorSettings;

//alert("ColorSettings = " + app.colorSettings);

app.colorSettings = "JJMackProPhotoOff";

//alert("ColorSettings = " + app.colorSettings);

//operation

app.colorSettings = saveColorsettings;

//alert("ColorSettings = " + app.colorSettings);

JJMack