Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch photoshop action using code

Is it possible to launch Photoshop action using code? I mean launch the action in Photoshop via a batch file? Or something like that?

like image 937
Cédric Boivin Avatar asked Feb 19 '13 18:02

Cédric Boivin


People also ask

How do I run an action script in Photoshop?

Playing the action Whenever you want to use your action, simply select the action in the window, and click the play button, on the bottom right of the action panel. Your action will then cycle through the steps on your chosen work.

How do I open an action in Photoshop?

Open the Action Panel in PhotoshopOpen Photoshop and go to the "Window" tab in the top menu bar. Then click on "Actions" in the dropdown. Your action panel will pop out.

How do I run a code in Photoshop?

Go to File > Scripts > Browse. Navigate to your script, and then press open. Your script will immediately run. If you would like to see your script in this script menu, then you need to copy it into the appropriate folder.


2 Answers

Newer versions of Photoshop (CS5 and CS6 are the only ones I've worked with) support a feature called Droplets that lets you create executables to run a set of actions.

Check here for detailed information on creating and running the droplet. Will update this answer with the steps shortly.

like image 68
dinesh Avatar answered Oct 03 '22 07:10

dinesh


I believe so but I have not tried it myself. The PS6 JavaScript API has a method called doAction() that might be what you are looking for.

http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/photoshop/pdfs/cs6/Photoshop-CS6-JavaScript-Ref.pdf

like image 23
Tony Smith Avatar answered Oct 03 '22 06:10

Tony Smith