Has anyone managed to trigger the Object Selection Tool via script?
I’m trying to figure out if it’s possible to call the Object Selection Tool in Photoshop using a script — in the same way as pressing the W key on the keyboard.
So far I’ve tried:
Switching tools with Action Manager code (select with objectSelectionTool).
Using app.currentTool.
None of these approaches reliably activate the Object Selection Tool across different Photoshop versions.
Has anyone successfully scripted this so that it behaves exactly like pressing W?
If yes, could you share the code snippet or approach you used?
Thanks in advance!
