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

Illustrator 2023 - Javascript documentation

Explorer ,
May 24, 2023 May 24, 2023

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
1.4K
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

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);

 

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

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

- Mark

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

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

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
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);

 

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

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