Why use scripts instead of actions?
If you’ve used Photoshop Actions, you’re already familiar with the enormous benefits of automating repetitive tasks. Scripting allows you to extend those benefits by allowing you to add functionality that is not available for Photoshop Actions. For example, you can do the following with scripts and not with actions:
- You can add conditional logic, so that the script automatically makes “decisions” based on the current situation. For example, you could write a script that decides which color border to add depending on the size of the selected area in an image: “If the selected area is smaller than 2 x 4 inches, add a green border; otherwise add a red border.”
- A single script can perform actions that involve multiple applications. For example, depending on the scripting language you are using, you could target both Photoshop and another Adobe Creative Cloud Application, such as Adobe Illustrator® CC, in the same script.
- You can open, save, and rename files using scripts.
- You can copy scripts from one computer to another. If you were using an Action and then switched computers, you’d have to recreate the Action.
- Scripts provide more versatility for automatically opening files. When opening a file in an action, you must hard code the file location. In a script, you can use variables for file paths.
NOTE: See Photoshop Help for more information on Photoshop Actions
Partager