Display scripts dialog box only once in an action run by Automate > Batch

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Kukurykus, Tom, xbytor

zeeto
Posts: 1
Joined: Sun Nov 05, 2017 8:41 pm

Display scripts dialog box only once in an action run by Automate > Batch

Post by zeeto »

Hello,

I have an action which runs just a script.
The script displays a dialog box allowing to select various parameters, based on which the image is processed.
I want to run this action using Automate > Batch command, and I'd like the dialog box to show only once and apply the parameters set within this dialog box to all the images in the batch.

I tried to use app.set/getCustomOptions(), but this requires to restart the Photoshop after every batch, as the set object stays in Photoshop registry until Photoshop is closed, even with persistance set to false.

I came across suggestions like saving the config file, but this requires to remember to delete the file, after the batch is completed.

Of course, I could integrate a folder selection in my dialog box to select all the files to process, but I really need to be able to run this script via Automate > Batch option.

Thanks

wasfiwasfi
Posts: 45
Joined: Fri Nov 04, 2016 8:29 am

Re: Display scripts dialog box only once in an action run by Automate > Batch

Post by wasfiwasfi »

can you share the script !?