5 Replies Latest reply on Jun 6, 2011 8:48 AM by c.pfaffenbichler

    How do I disable dialogs? (javascript, PcCS5)

    Kasper Hviid Level 1

      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?