9 Replies Latest reply on Nov 10, 2015 7:00 AM by Unique

    Calling Javascript from another js

    Unique Level 1

      Hi Forum.

       

      Need a help from you. I would like to call the external script into the script installed in Acrobat/Javascript folder. it's a simple folder level startup script. Below is the small piece of code. Tried in 2 different method but not working.

       

      Thanks for your immediate help on this.

       

       

      var MY_Call = app.trustedFunction(function()  // the function of the script installed in javascript script folder.

      {

      app.beginPriv();

       

      // Method 1 calling the external js file

      #includepath "/Users/User1/Desktop/Check_without_names/"

      #include "PDFScript_New_Artworking_V4.js";

       

      // Method 2 calling the external js file

      $.getscript("/Users/User1/Desktop/Check_without_names", function() {

      anotherScript() });

       

      app.endPriv();

      }

      })

       

      Could you please look into this and help me.

       

      Great thanks.