I have a script that does a variety of things to the active document on file open in Photoshop (currently on v 23.x - I keep it relatively up to date so that'll change over time)
I run this from the File > Scripts > Script Events Manager: "Open Document" event.
Unfortunately when opening multiple RAW files via ACR (Adobe Camera RAW), it seems the "Open" event is only fired once, after they have all been opened - or more accurately, it appears that the "Open" event may be firing once for each RAW opened, but the activeDocument is always the same most recently opened RAW file - it does not cycle through each file.
This means that my script only runs on one of the opened RAW files (the currently active one). I'm aware that I can do a loops through opened documents etc., but my question is:
- Is there a script action / script ID that is fired for each file that is opened via ACR that I can use instead of the "Open Document" event?
- Alternatively, is there any way to get a list of the files that were opened in a specific call from ACR? That is, if I already have 2 documents open in Photoshop, and I open another 2 via ACR, can I get a list of just that 2 (as opposed to having to loop through every open document)?