Copy link to clipboard
Copied
In MacOS "~/Desktop" is the path to the current user's desktop. What would I use in Windows? I've tried Folder("%username%/Desktop"), but that didn't work. Any suggestions?
You would use neither
Extendscript allows instant access to the current user's desktop through a predefined member of the Folder class:
alert (Folder.desktop);
Folder.desktop is a fully functional pointer to a regular folder, as can be seen with
alert (Folder.desktop.getFiles().join("\r"));
(see http://jongware.mit.edu/idcs5js/pc_Folder.html#desktop)
Copy link to clipboard
Copied
You would use neither
Extendscript allows instant access to the current user's desktop through a predefined member of the Folder class:
alert (Folder.desktop);
Folder.desktop is a fully functional pointer to a regular folder, as can be seen with
alert (Folder.desktop.getFiles().join("\r"));
(see http://jongware.mit.edu/idcs5js/pc_Folder.html#desktop)
Copy link to clipboard
Copied
Thanks a lot!
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more