I'm having a lot of trouble with an .AI script I'm making to export several versions of a file depending on it's color model.
The only thing holding me up is that I can't seem to set the color space to CMYK when exporting to JPEG, even though it is possible when choosing File / Export / Export as JPEG (jpg).
Here is my function
I've got the writeln in there to try to debug, when I run it I get this in the console:
color model for JPG is undefined
color space for JPG is now ImageColorSpace.CMYK
and I get an RGB jpg.
Can anyone help? The scripting reference PDF is really lacking and it doesn't list this property, but it must exist. It would be bizarre if they made the export in scripting more limited than the file menu.
That's right - the ExportOptionsJPG is related to the Save for Web function rather than the Export function.
Even with PNG, we have to use ImageCapture to be able to save a PNG with high resolution.
It's nice we can use Actions as a workaround, but not nice for having to do so in 1st place :/
Thanks very much, Ten A.
It's good to know there's a community here, since the documentation and object model can be so confusing and lacking.