Skip to content

Instantly share code, notes, and snippets.

@sttk3
Last active January 18, 2026 12:20
Show Gist options
  • Select an option

  • Save sttk3/e576238793b2bf31e182d0bf959237d1 to your computer and use it in GitHub Desktop.

Select an option

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
* [コンテキストタスクバーについて](https://community.adobe.com/t5/illustrator%E3%83%95%E3%82%A9%E3%83%BC%E3%83%A9%E3%83%A0-discussions/%E3%82%B3%E3%83%B3%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%82%BF%E3%82%B9%E3%82%AF%E3%83%90%E3%83%BC%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6/m-p/14973615?profile.language=ja#M38573)
* @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