9 Replies Latest reply on May 11, 2016 2:32 PM by JJMack

    dialogMode for Cannot locate missing linked files cc 14

    Gonterman1201 Level 1

      #target photoshop-80.032

      //

      // Open.jsx

      //

       

      //

      // Generated Fri May 06 2016 11:48:41 GMT-0500

      //

       

      cTID = function(s) { return app.charIDToTypeID(s); };

      sTID = function(s) { return app.stringIDToTypeID(s); };

       

      //

      //==================== Open ==============

      //

      function Open() {

        // Open

        function step1(enabled, withDialog) {

          if (enabled != undefined && !enabled)

            return;

          var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);

          var desc1 = new ActionDescriptor();

          //desc1.putPath(cTID('null'), new File("~/Desktop/Screen Shot 2016-05-05 at 3.26.47 PM.png"));

       

          desc1.putPath(cTID('null'), new File("/Users/bagonterman/Desktop/C0382737163testbrokenLink.psd"));

          executeAction(cTID('Opn '), desc1, dialogMode);

        };

       

        step1();      // Open

      };

       

       

       

      //=========================================

      //                    Open.main

      //=========================================

      //

       

      Open.main = function () {

        Open();

      };

       

      Open.main();

       

      this does open the file but it gets stuck with a dialog that is open telling me that there is a missing link. How do I find that window and include it in the DialogModes.No part of the script. Thank you