Skip to main content
dublove
Legend
September 15, 2026
Question

Is there any way to know if I am currently using the 'selection tool' or 'direct selection tool' using a script?

  • September 15, 2026
  • 0 replies
  • 13 views

Hello everyone.
I need to distinguish whether I am currently using the 'selection tool' or the 'direct selection tool'.
Is there any way to implement it using scripts?

Or, how to distinguish which tool I am currently using to select "object", "path", or content.
Both of the following are true.

alert(item.constructor.name == 'Rectangle');
alert(item.parent.constructor.name == 'Spread');

It seems like there's nothing I can do.

Thank you very much.