Is there a way to run a script AFTER a Batch is completed in Photoshop?
I created an Action that I run it through the Automate > Batch but I would like to run an additional script only AFTER the batch is completed.
Is there a way to do this?
Is there a way to run a script AFTER a Batch is completed in Photoshop?
I created an Action that I run it through the Automate > Batch but I would like to run an additional script only AFTER the batch is completed.
Is there a way to do this?
2
Answers
I actually found an answer to this problem, months later working on a different project.
First you need to create a Droplet with the Action(s) you want to run:
File → Automate → Create Droplet
Then you create a Batch file that runs the Droplet:
for %%a in ("C:FolderImages_You_Want_Processed*.*") do ( start "" /w "C:FolderYourDropletName.exe" "%%a")
In the batch file you can include the order of the actions and run them in order.
Yes. You need to add the script as part of an action. Your action can then be run as a batch process:
Select your action, hit record. Load your script from the file File > Scripts > my_script.jsx (or whatever you’ve called it). The script will now run. Press STOP, to stop recording the action.
Now, when you run the action as a batch file it will now run as previously but with the addition of my_script.jsx immediately afterwards.
Just make sure your script is error free or it won’t record at all. Secondly, don’t forget to stop recording the action – or you’ll have repercussions.