Hard-code a save as path?
Hello,
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.