Skip to main content
Inspiring
October 16, 2023
Question

Using Javascript, how can I disable colour management in illustrator?

  • October 16, 2023
  • 1 reply
  • 772 views

Hi all,

 

I'm currently trying to work out how to disable colour management in Illustrator, which should reset the selection back to 'Emulate Adobe® Illustrator® 6.0'. Looking at the documentation online I've found the only way to disable colour management is by loading an empty .csf file (according to the documentation below).

 

When the term 'file is empty' is being used, does this mean empty of any data, as by doing this results in an error, instead of the desired disabling of colour management...

 

var fileSpec = new File('/Users/first.last/Desktop/BlankColourProfile.csf');
app.loadColorSettings(fileSpec)

 

 

The Indesign equivalent of this is app.colorSettings.enableColorManagement = false; but couldn't seem to find anything as simple for Illustrator for some reason...

 

As always, any help would be much appreciated,


Cheers,

Sam

This topic has been closed for replies.

1 reply

CarlosCanto
Community Expert
Community Expert
October 16, 2023

this one was hard to figure out

 

// remove color management (same as Emulate Illustrator 6)
app.loadColorSettings (File (" "));
Inspiring
October 16, 2023

Thanks for the response @CarlosCanto ... this makes logical sense, but I can't seem to get this to work for some reason. Are there any other considerations which are required to allow for this to happen?

CarlosCanto
Community Expert
Community Expert
October 16, 2023

are you getting any error messages? or is it just not doing anything?