1 Reply Latest reply on Jun 1, 2016 5:05 AM by pav55

    Can some confirm that the El Capitan OS X 10.11 Dialog issue is repeatable on their system?

    Bill McLean Level 1

      I have been able to qualify the issue and the issue has started with the Introduction of El Capitan.


      The issue with dialog boxes not closing properly can be demonstrated by doing the following steps


      1. Open InDesign and Extend script.  Add the following to a testscript:
           var w = new Window('dialog', 'Descriptions');
           btn = w.add('button', undefined, 'close');
           btn.onClick = function() {


                   // the window should be closed when the alert is pops up.




         // the window show be closed if the you set a break point here.
        var a = 10;

        var c = 10;
        When running the script, will see that the dialog with the 'close' button closes before the alert dialog pops up.  This is the correct behavior.

      2. Put the following at the top of the script:

      #target "indesign"

      Re run the script. You will see that the dialog with the close button does not close and the alert dialog pops up.  This is the incorrect behavior.

      3) Remove the # target line from the script.  When you run the script again, the incorrect behavior continues to occur.


      4) Close ExtendScript and InDesign and reopen both, will cause the correct behavior to be shown when rerunning the script


      5) Removing the #target is not an option for applications. If you and you try to reference the document using:

           currentDoc = app.activeDocument;

      current document value is undefined.