Skip to content

Instantly share code, notes, and snippets.

@sttk3
Last active January 2, 2024 03:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sttk3/e576238793b2bf31e182d0bf959237d1 to your computer and use it in GitHub Desktop.
Save sttk3/e576238793b2bf31e182d0bf959237d1 to your computer and use it in GitHub Desktop.
Sample script to enable/disable the contextual task bar in Adobe Illustrator
/**
* @file Sample script to enable/disable the contextual task bar in Illustrator.
* Requires Illustrator 2024(28) or later
* @version 1.0.0
* @author sttk3.com
* @copyright © 2024 sttk3.com
*/
(function() {
var key = 'ContextualTaskBarEnabled' ;
var pref = app.preferences ;
// enable
pref.setBooleanPreference(key, true) ;
// disable
pref.setBooleanPreference(key, false) ;
// toggle
pref.setBooleanPreference(key, !pref.getBooleanPreference(key)) ;
})() ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment