Is there any way to change a documents color space on an already open document in VBS?
I have tried "AiDocumentColorSpace" but this seems to be a read only value!?
Yep its a read only property… The only files you can assign a color space to are pre version 9 where you could have mixed space objects… You may have to copy the file contents to a new document although I've not tested that…
Hi guys, since the OP never bothered to come back for his answer, this answer is rather aimed to us. We can record a couple of actions to change the color mode of an open document, then use VBS (or perhaps AS, can any of you translate it?) to run those actions.
'script must be run outside Illustrator, it can not run from the File->Scripts Menu set iapp = CreateObject("Illustrator.Application") set idoc = iapp.ActiveDocument colormode = idoc.DocumentColorSpace if colormode = 1 then iapp.DoScript "colorModeCMYK", "Set 1", True if colormode = 2 then iapp.DoScript "colorModeRGB", "Set 1", True
Europe, Middle East and Africa