Skip to content

Instantly share code, notes, and snippets.

@kingtosh
Forked from sttk3/ContextualTaskBarEnabled.jsx
Created November 11, 2024 13:07
Show Gist options
  • Select an option

  • Save kingtosh/67cb31dc0e69b018b01a1cc0177cd9ab to your computer and use it in GitHub Desktop.

Select an option

Save kingtosh/67cb31dc0e69b018b01a1cc0177cd9ab 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.1
* @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