3 Replies Latest reply on Feb 1, 2011 3:35 AM by zyberkid

    doScript file not found error only in mac

    zyberkid Level 1

      i am using this piece of code for calling other javascript file from a menu option.


      the file exists true, yet file not found error is thrown.


      here goes the script


      var scriptFile = File("/Applications/Adobe InDesign CS4/Scripts/Scripts panel/tool/xyz.jsx");

      if (scriptFile.exists)





      File does not exists error is coming

      javascript error no: 48

      in app.doScript();


      i don't know really the reason, this code works fine in the windows environment(need to make some changes in the file path).

      do i miss anything..

      please help.