7 Replies Latest reply on Jan 12, 2016 10:35 PM by 13H

    Possible bug in Photoshop CS6 with app.activeDocument.path.


      JavaScript running in Photoshop CS6 under OS X 10.7.5 returns the wrong result for app.activeDocument.path when the file is located on the boot drive. The result is undefined and an error message incorrectly states that the document has not been saved yet. If the file is located on a remote volume, the correct path is returned.


      To reproduce this problem, create a new file in Photoshop CS6 on a Mac. Save the file to the desktop. With the file still open, run the following script in ExtendScript Toolkit.



      // start script


      var thePath = app.activeDocument.path;



      // end script



      Running the same script with a file located on a server volume open in Photoshop correctly returns "/path/to/file.psd" instead of undefined and no error occurs.


      This appears to be a bug in Photoshop CS6's JavaScript implementation. This problem did not exist in Photoshop CS3.


      A similar issue prevents Photoshop CS6 from saving files to the boot drive using activeDocument.saveAs.


      Has anyone else experienced this problem? If so, have you discovered an alternate method to determine the file path or save a file on the boot drive?