0 Replies Latest reply on Oct 14, 2010 8:24 AM by scriptworker

    copy files from mounted pc volume to mac

    scriptworker Level 1

      Hi all,


      I have a problem with the following script:


      var xmlfile = File.openDialog("Choose XML");

      var result = File(xmlfile).copy("~/Desktop/" + xmlfile.name);


      This result is false (can't be copied) when the file is an a mounted PC Volume. (/Users/Public/Documents/)



      In applescript this works fine:


      tell application "Finder"   

           set xmlfile to (choose file)

           move xmlfile to desktop

      end tell


      The source is on the same Volume.


      Does javascript have a problem with accessing remote volumes?


      Can someone help?


      Kind regards,