Skip to main content
Participating Frequently
October 16, 2012
Answered

How can I check the color profile for the current document?

  • October 16, 2012
  • 1 reply
  • 6941 views

I'd like to create a script that checks the current document's color profile and checks it against a string, for example "sRGB IEC61966-2.1". My studio has a script that performs various functions to make sure that all the layers are visible/unlocked, checks for stray points, etc., and we'd like to add a check to the color profile because we handle a large number of files and this setting is overlooked a lot.

It's alright if this value isn't writable through script (we can just pop up an alert letting the user know that they need to change it), but I can't find where to actually read this setting! We're currently working on Macs and with JavaScript, but any nudge in the right direction would be great.

Thanks!

This topic has been closed for replies.
Correct answer Larry G. Schneider

It only appears in the PDF and AI save options and only as a boolean true or false. It doesn't appear to be accessable to scripting.

1 reply

Larry G. Schneider
Community Expert
Larry G. SchneiderCommunity ExpertCorrect answer
Community Expert
October 16, 2012

It only appears in the PDF and AI save options and only as a boolean true or false. It doesn't appear to be accessable to scripting.

jenmontesAuthor
Participating Frequently
October 16, 2012

Ah well. I pored through the JavaScript docs and came up with nothing but I wanted to ask here just to be sure. Thanks.

Inspiring
October 16, 2012

Not sure if you could maybe cobble something together using something in these? Maybe based on a defined list of whats what and what uses what?

http://forums.adobe.com/message/3886676

http://forums.adobe.com/thread/874476

Again would be cobbling and maybe not doable even so.