Skip to main content
Damienned
Inspiring
July 7, 2011
Answered

Is it possible to assign a colorprofile to a document in javascript?

  • July 7, 2011
  • 1 reply
  • 959 views

I'm trying to assign a colorprofile (Coated FOGRA39) to my document trough javascript (document presets?).

Is it possible?

Cheers Daniel

This topic has been closed for replies.
Correct answer Muppet Mark

Document presets only have a color mode RGB or CMYK… You will need to look at changing the app settings when creating a new file…

#target illustrator var defCol = app.defaultColorSettings; alert( unescape( defCol ) ); var csList = app.colorSettingsList; alert( unescape( csList.join('\r') ) ); app.loadColorSettings( File(csList[10]) ); app.loadColorSettings( File(defCol) );

1 reply

Muppet MarkCorrect answer
Inspiring
July 7, 2011

Document presets only have a color mode RGB or CMYK… You will need to look at changing the app settings when creating a new file…

#target illustrator var defCol = app.defaultColorSettings; alert( unescape( defCol ) ); var csList = app.colorSettingsList; alert( unescape( csList.join('\r') ) ); app.loadColorSettings( File(csList[10]) ); app.loadColorSettings( File(defCol) );

schroef
Inspiring
December 7, 2022

Do you know if we can use assign profile in script? Im trying to figure this out, have not found it yet