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
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);
Copy link to clipboard
Copied
Hi @SpaghettiSam, here's some documentation. You could also have a look at this script by @Ten A.
- Mark
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
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);
Copy link to clipboard
Copied
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