2 Replies Latest reply on Jul 22, 2016 9:50 AM by RicSum

    Hard-code a save as path?

    RicSum Level 1


      I have a working script which saves my active document as a .jpg file.


      It includes the following line of code which outputs the saved jpg to the same directory as the psd file.


      var filePath = srcDoc.path + '/' + docName + '.jpg';


      Could someone please advise me how I hard-code this variable to point to the OS X desktop?


      I have tried these 2 options - to no avail:


      var filePath = /Desktop + '/' + docName + '.jpg';


      var filePath = "/Desktop" + '/' + docName + '.jpg';


      Thank you all in advance.