Last active
January 2, 2024 03:30
-
-
Save sttk3/e576238793b2bf31e182d0bf959237d1 to your computer and use it in GitHub Desktop.
Sample script to enable/disable the contextual task bar in Adobe Illustrator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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