Hi!
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!?
Please help!
/Tommy
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
North America
Europe, Middle East and Africa
Asia Pacific