Is it possible to run a script when changing active document?

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

DaveWortley
Posts: 1
Joined: Wed Mar 21, 2018 5:34 pm

Is it possible to run a script when changing active document?

Post by DaveWortley »

I have a script that I need to run whenever a user either opens a new image, or switches to an already open document inside Photoshop.

If I use the Scripts Event Manager and set it to "Everything" it works but that feels a little heavy-handed. Does anyone know what the event ID is for switching active document?