2 Replies Latest reply on Aug 5, 2015 3:38 PM by Jump_Over

    Put a remote file in document using Indesign Javascript

    Nirav02211

      Hi All ,

       

      I am using Indesign CS5 .

       

      I am getting an error in placing an image into frame in indesign Javascript .

      I am getting the error when i am accessing a network drive O but face no error while accessing local drive D

       

       

        try{   

           //This works !

             //myImage = "D:\\3641456.png";

           // This does not work   

             myImage = "O:\\3641456.png";

             var myFile = File(myImage);

             logError ("myFile : " + myFile);

          var myIm =myDocument.pages.item(currPageCount).place(myFile);

        //var myIm =myDocument.pages.item(currPageCount).place (File(myImage))

        }

           catch(e)

        {

               logError (e+" : Error");

       

        }

       

       

      Output :

      myFile : /o/3641456.png

      IOError: Cannot find the folder "O:\3641456.png". : Error

       

      Please help

       

      Nirav.