Use Photoshop Scripts

If you’re a developer, you can write your own custom scripts that automate the tasks performed by Photoshop. You can use Visual Basic, AppleScript, and JavaScript to write your scripts.

Scripts give you a lot more control of elements outside of Photoshop making them more powerful and useful than actions. If you’re not a programmer, you can take advantage of the Adobe Add-ons page and find a script that is useful for you.

Photoshop also comes with pre-loaded scripts (File > Scripts) that are very useful, for example the Image Processor, which allows you to to convert multiple images into a different file type.