Found this code and modified it to my action script
Code: Select all
// 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;