Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

please Give us "app.currentTool" !

Participant ,
Nov 12, 2025 Nov 12, 2025

hello Adobe,
While scripting, I oftentimes want to know what is the currently active tool, so that I change what my hotkeys do based on that.

For example, if I have the paint brush or the blob brush tools selected, then I want [ and ] (or other hotkeys) to change the brush size, but if I have other tools selected, then I want them to increase/decrease the width of currently-selected shapes. Another example would be to switch to the zoom tool using any given hotkey as long as it's held, and then go back to the tool that was currently selected, or we can use that to "spring-load" tools...

Just having "app.currentTool" (just like photoshop), even the tool name without any of its parameters, would open up a whole new world of possibilities for scripting, especially that now we have app.selectTool() . Exposing the tool functions within "app.currentTool" would elevate Illustrator a whole new level, but baby-steps, I guess. I'm not asking for much, am I?

Currently, I keep on tracking what tool is selected using variables in my script, but that can easily break if I change the tool using the toolbar for example.

Please, please, please please give us that

TOPICS
Feature request , Scripting , SDK , Tools
216
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Nov 12, 2025 Nov 12, 2025

Its a great idea @Flowgun but this is not the right place for feature requests (the right people won't see it here).

 

Go here and add it. (Unfortunately you will need to make a uservoice account to do so.) When you've made the request, come back here and post a link to the feature request you made and we can vote on it too.

Translate
Community Expert , Nov 12, 2025 Nov 12, 2025

I've got you

 

// get selected Tool
// carlos canto
// https://community.adobe.com/t5/illustrator-discussions/please-give-us-quot-app-currenttool-quot/m-p/15589529#M457890

// it errors when Selection Tools are active
// so do a try, catch to prevent it

alert(app.getSelectedToolName());
Translate
Adobe
Community Expert ,
Nov 12, 2025 Nov 12, 2025

Its a great idea @Flowgun but this is not the right place for feature requests (the right people won't see it here).

 

Go here and add it. (Unfortunately you will need to make a uservoice account to do so.) When you've made the request, come back here and post a link to the feature request you made and we can vote on it too.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 12, 2025 Nov 12, 2025

Thanks! I didn't know about the uservoice website. the community has the "Feature request" and even the voting system so I thought this is the place.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 12, 2025 Nov 12, 2025

Yes it is confusing. This is a user-to-user forum, so you're welcome to post feature requests here for other users to discuss, but if you want Adobe to see it, uservoice is the best bet at the moment. Uservoice is a very old crusty system that will be retired in next year or two I'd guess. Many other Adobe app forums have moved away from uservoice, but not Illustrator yet.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 12, 2025 Nov 12, 2025

I've got you

 

// get selected Tool
// carlos canto
// https://community.adobe.com/t5/illustrator-discussions/please-give-us-quot-app-currenttool-quot/m-p/15589529#M457890

// it errors when Selection Tools are active
// so do a try, catch to prevent it

alert(app.getSelectedToolName());
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 13, 2025 Nov 13, 2025

That's great Carlos!

 

(Bit of a shame that it can't handle the two most-used tools in Illustrator... sigh)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 13, 2025 Nov 13, 2025

right?! it's baffling

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 13, 2025 Nov 13, 2025

OMFG. this is great! I never expected it's there and I believe I tried and asked around years ago. This will tremendously improve my scripts and workflow!! thank you ❤️

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 13, 2025 Nov 13, 2025

you're welcome, can you please share with us how you would use such feature in your workflow?

 

thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 13, 2025 Nov 13, 2025

I'm using autohotkey on Windows so I don't know much about other systems.  for example, I can check if I have the live paint bucket tool active, and if it is, I use WASD keys instead of the arrow keys to navigate through the colors (then Escape would select the Select tool and WASD go back to doing other things). I can spring-load keys, for instance the tilde key or the E key to have the eraser tool, and go back to my previous tool once I release the key... I also set Q and W to increase/decrease brush stroke if I have paint brush/blob brush or eraser tool selected, and it they are not, Q and W would increase/decrease the stroke width of selected shapes by launching another function. stuff like this that would hotkeying smarter depending on the current tool.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 13, 2025 Nov 13, 2025
LATEST

oh wow nice! thanks for sharing

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines