Photoshop scripting actions and batch

54 Views Asked by At

perhaps one can help me with some scripting snippets for:

A) supress/ignore open and save Dialog in Actions with PS-script

B) supress Color warnings while opening

C) toogle on/off a dialog box next to an action (inside a action with e.g. bluring dialog box, this should run with standard values) I know, I can toogle it on/off next to actions manual, but I will do this manual

D) remember all changes done in a actions dialog for first running of batch job and do all the same configs an other images. Otherwise the dialogs will shown up for every picture

Hope you can help me? I will programm some scripts for usage with other batch processors or pixelsplasher´s mockup smart replace.

This code I´ve found it works for simple scripting.

// ASSUMING DIALOGS ARE CURRENTLY SET TO NO/OFF
var savedDisplayDialogs = app.displayDialogs;

// CHANGE THE DIALOGS TO ON
//app.displayDialogs = DialogModes.ALL;

// CHANGE THE DIALOGS TO OFF
app.displayDialogs = DialogModes.NO;

//======================================

// MAIN SCRIPT CODE TO DO STUFF...
var act = "action"
var actset = "actionset"

app.doAction(act, actset);


//======================================

// RESTORE THE DIALOGS TO THEIR ORIGINAL SETTINGS
app.displayDialogs = savedDisplayDialogs;
1

There are 1 best solutions below

10
Ghoul Fool On

Answer A is accessible from the action window itself:

action dialog

From left to right we have a tick (toggle action on/off), small file window (toggle dialog on/off) and the name of the action.
Uncheck the toggle dialog on/of on the action and before you run the script and it'll won't pop up any save open windows.