Running an Action By Default on Specific Events in Photoshop (PS)
So, if you want PS to do something automatically every time some thing happens, read on!
First, let's define what we mean by something happens - every time PS does something, like for example opening a file or saving a file, an "Event" is said to have occurred. In the case of the File Open, the event is exactly that - an open document event. Some examples of Events are Open Document, Close Document, Export Document, etc. For a complete list of Events in Photoshop, go here.
For example, let's say you have some action that you've recorded and want to run immediately when Photoshop Opens a Document. A simple application might be a script that creates a new Layer and applies Capture Sharpening to the image. [Of course, it is possible to write a script that could read the metadata on an image, figure out the camera that the image was captured with and apply some level of sharpening based on that camera. We'll leave writing that Script to another time.... 😀 ]
Here's how you would set up an Action that you already have recorded to run every time a Document was Opened:
1. Go to File>Scripts>Script Event Manager...
2. In this Window that opens:
pick the Event that you want to attach the Action to.
Then, pick the Action Folder and the Specific Action in that folder that you previously recorded.
Click "Done" and you're done!
Now every time PS has that Event occur, your action will fire!