0
[CS2/CS3 AS] Color Management vs Scripting
Engaged
,
/t5/illustrator-discussions/cs2-cs3-as-color-management-vs-scripting/td-p/1161854
Dec 08, 2008
Dec 08, 2008
Copy link to clipboard
Copied
Argh! Okay, I've got a very simple script whose purpose in life is to shut off all ligatures in all stories. Literally 3 lines long.
Now here's the catch. We have a bunch of AI files from outside artists, and I'm not sue what they did our how they did it but when the script is run on their files, all text goes through an automatic RGB to CMYK conversion *even though it was already CMYK to begin with*!
So all the 100% black text suddenly becomes "rich black" text with 75C 68M 67Y 90K. (It still shows as CMYK in the GUI, but get properties of the text now returns 0R 0G 0B. Get properties directly before running the script returns 0C 0M 0Y 100K)
This is, of course, seriously bad for final output...
Anybody have some idea what might be happening here? Or failing that, a sample script to let me change the color model of every character of every story back to CMYK?
Thanks in advance,
Eric.
tell application "Adobe Illustrator"
tell front document
set ligature of every character of every story to false
set contextual ligature of every character of every story to false
set discretionary ligature of every character of every story to false
end tell
end tell
Now here's the catch. We have a bunch of AI files from outside artists, and I'm not sue what they did our how they did it but when the script is run on their files, all text goes through an automatic RGB to CMYK conversion *even though it was already CMYK to begin with*!
So all the 100% black text suddenly becomes "rich black" text with 75C 68M 67Y 90K. (It still shows as CMYK in the GUI, but get properties of the text now returns 0R 0G 0B. Get properties directly before running the script returns 0C 0M 0Y 100K)
This is, of course, seriously bad for final output...
Anybody have some idea what might be happening here? Or failing that, a sample script to let me change the color model of every character of every story back to CMYK?
Thanks in advance,
Eric.
TOPICS
Scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explore related tutorials & articles
Community Expert
,
LATEST
/t5/illustrator-discussions/cs2-cs3-as-color-management-vs-scripting/m-p/1161855#M238223
Dec 08, 2008
Dec 08, 2008
Copy link to clipboard
Copied
Eric,
I've found out in the past that even if you change the Document Color Mode from RGB to CMYK, the original mode will still be shown when reopening the file in the color panel. My CMYK fill and stroke are set to no fill and a 0.5 pt stroke. If I open a file that started life as an RGB file, even though it has been changed to CMYK, the color panel will show a white fill and a 1 pt stroke, the setting in my RGB startup file.
I've found out in the past that even if you change the Document Color Mode from RGB to CMYK, the original mode will still be shown when reopening the file in the color panel. My CMYK fill and stroke are set to no fill and a 0.5 pt stroke. If I open a file that started life as an RGB file, even though it has been changed to CMYK, the color panel will show a white fill and a 1 pt stroke, the setting in my RGB startup file.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

