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

Illustrator 2023 - Javascript documentation

Explorer ,
May 24, 2023 May 24, 2023

Copy link to clipboard

Copied

Hi all,

 

I'm trying to create a little script to setup certain preferences in Illustrator as I have done with Indesign and Photoshop. For some reason, I'm really struggling to find any javascript documentation anywhere for Illustrator, and when I do, it doesn't contain the specific properties I'm trying to manipulate... Any help would be hugely appreciated!

 

Cheers,


Sam

TOPICS
Scripting

Views

591

Translate

Translate

Report

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

correct answers 1 Correct answer

Enthusiast , May 25, 2023 May 25, 2023

Use these methods to change boolean settings.

// true - Rich Black, false - All Blacks Accurately
app.preferences.setBooleanPreference('blackPreservation/Onscreen', false);
app.preferences.setBooleanPreference('blackPreservation/Export', false);

 

Votes

Translate

Translate
Adobe
Community Expert ,
May 24, 2023 May 24, 2023

Copy link to clipboard

Copied

Hi @SpaghettiSam, here's some documentation. You could also have a look at this script by @Ten A.

- Mark

Votes

Translate

Translate

Report

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
Explorer ,
May 24, 2023 May 24, 2023

Copy link to clipboard

Copied

Thanks for the response @m1b !

 

So, the particular property I'm looking for is regarding the display of the colour black as shown in the attached screenshot. I couldn't seem to find this property within the documentation you supplied, however, managed to pinpoint this in the script you supplied...

"blackPreservation/Onscreen",
"blackPreservation/Export"

 

The InDesign equivalent I've setup for this particular property is:

var myDoc = app.activeDocument;

	app.colorSettings.idealizedBlackToScreen = false;
	app.colorSettings.idealizedBlackToExport = false;


Is there anyway I could mimic what I've setup in InDesign, keeping it nice and simple?

 

Cheers,


Sam

Votes

Translate

Translate

Report

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
Enthusiast ,
May 25, 2023 May 25, 2023

Copy link to clipboard

Copied

Use these methods to change boolean settings.

// true - Rich Black, false - All Blacks Accurately
app.preferences.setBooleanPreference('blackPreservation/Onscreen', false);
app.preferences.setBooleanPreference('blackPreservation/Export', false);

 

Votes

Translate

Translate

Report

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
Explorer ,
May 26, 2023 May 26, 2023

Copy link to clipboard

Copied

LATEST

Thanks very much@Sergey Osokin, works as intended, and this information is enough to get me away on applying the other Illustrator preferences as well! 🙂

Cheers,

 

Sam

Votes

Translate

Translate

Report

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