Question
How do I disable dialogs? (javascript, PcCS5)
I have a script which fills the layer with a certain color:
docRef.selection.fill(fillColor, ColorBlendMode.NORMAL, 100, true);
I have recorded the script into an action, since I want to batch it on a collection of files.
But, when I run my script with my action, the fill dialog window pops up!
I tried this to get rid of it, but it didn't work:
app.displayDialogs = DialogModes.NO;
displayDialogs = DialogModes.NO;
Is there any way I can get rid of that dialog?
