Access to Adobe Illustrator Preferences

Illustrator app preferences

Methods

app.preferences.getBooleanPreference(key)
app.preferences.getIntegerPreference(key)
app.preferences.getRealPreference(key)
app.preferences.getStringPreference(key)
app.preferences.setBooleanPreference(key, value)
app.preferences.setIntegerPreference(key, value)
app.preferences.setRealPreference(key, value)
app.preferences.setStringPreference(key, value)
var currState = app.preferences.getBooleanPreference(‘includeStrokeInBounds’);app.preferences.setBooleanPreference(‘includeStrokeInBounds’, !currState);
Toggle Use Preview Bounds

Problems

app.preferences.setIntegerPreference(‘rulerType’, 6); // 6: px app.preferences.setIntegerPreference(‘text/units’,6); // 6: px
Font units bug
Ruler units bug
app.preferences.setBooleanPreference (‘isRulerOriginTopLeft’, true); 
app.preferences.setBooleanPreference (‘isRulerIn4thQuad’, true);

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store