Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

[CS2/CS3 AS] Color Management vs Scripting

Engaged ,
Dec 08, 2008 Dec 08, 2008
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.
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
506
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Dec 08, 2008 Dec 08, 2008
LATEST
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines