Skip to main content
Known Participant
February 16, 2015
Question

Open File in RGB mode

  • February 16, 2015
  • 2 replies
  • 712 views

How to Open file in RGB mode in illustrator using Javascript

This topic has been closed for replies.

2 replies

Qwertyfly___
Legend
February 18, 2015

if you have CS6 or above you can executeMenuCommand

app.executeMenuCommand ('doc-color-rgb');

or

app.executeMenuCommand ('doc-color-cmyk');

this will switch the active documents colour mode

Larry G. Schneider
Community Expert
Community Expert
February 16, 2015

DocumentColorSpace.RGB

Roopa aniAuthor
Known Participant
February 17, 2015

Hi Larry

We can read using DocumentColorSpace.RGB, but we cant change the mode.

Roopa

Larry G. Schneider
Community Expert
Community Expert
February 17, 2015

Right you need to create a new document in the correct color space and if necessary move all artwork to the new file. You can't change the color space of an existing document by scripting.