One letter, one bug

AiScripts
Apr 2, 2023

In the Illustrator object model, the ImageColorSpace constant is used to set the color space of a bitmap image or export file. Adobe releases the “Illustrator Scripting Guide.pdf” with every major update to Illustrator, with a repeated typo in the table of color space values.

Adobe developers have set ImageColorSpace.GrayScale to export in grayscale with two capital letters. The author of this guide printed it as ImageColorSpace.Grayscale. Since the values are case-sensitive, scripts with lowercase “s” will generate an “Error 1320: Invalid enumeration value”.

--

--

AiScripts

Sergey Osokin. Product Illustrator, Icon Designer, Script Developer (Ai, Ps). Writing about bugs and tricks in Adobe Illustrator scripts