4 Replies Latest reply on Apr 14, 2016 4:48 AM by Loic.Aigon

    Cannot handle the request because a modal dialog or alert is active

    McShaman Level 1

      I cannot work out for the life of me why I am getting this message when 'Cannot handle the request because a modal dialog or alert is active'. I have simplified my code down to replicate the issue.

       

      All I want to do is have a dialog box that allows me to modify elements on the page... But it does not seem to allow it. I must be missing something simple.

       

      var selection = app.activeDocument.selection[0];
      
      dialog = new Window('dialog');
      
      var button = dialog.add('button', undefined, 'Resize');
      
        button.onClick = function() {
      
        selection.geometricBounds = [0, 0, 10, 10];
      
      };
      
      dialog.show();