Skip to main content
Inspiring
November 17, 2010
Question

Setting the Color Settings (Illustrator - Javascript)

  • November 17, 2010
  • 1 reply
  • 1341 views

I would like to set the right color settings file using a startupscript in Javascript.

If the name of the color settings file to be set is "myColorsettings", I assumed this line should do the job:

app.loadColorSettings ('myColorSettings')

But it returns an error. What's wrong?

The manuals tells me:

app.loadColorSettings (filespec)

Thanks,

Peter

This topic has been closed for replies.

1 reply

Muppet_Mark-QAl63s
Inspiring
November 17, 2010

Peter, I would expect that 'filespec' needs to be a 'file object' created with a string to the full location & name of file… Some thing like…

var filespec = new File('/Library/Application Support/Adobe/Color/Settings/Recommended/Europe Prepress.csf'); alert(filespec.exists);

Sorry I don't have a version that supports this for me to test. Check for the existance of the target file then load… Oh my example was on my mac your OS may differ…?

Inspiring
November 18, 2010

Mark,

Yes, that works, thank you very much!

Peter Bossens

Disclaimer: