Get current Photoshop folder
Is there a way to get the current folder that is used by Photoshop via scripting? ie if you were to go to the save dialog - what folder would it show? $activePhotoshopFolder That one! (I made that up, BTW)
And secondly is possible to change it?
If you create a new document then try to assign a path (without saving it)
var srcDoc = app.activeDocument;
app.activeDocument.path = sourceFolder;
alert(app.activeDocument.path);Error: 8103: The document has not been saved. Chicken meet Egg. Egg meet Chicken.
Why am I doing this? I want to change the folder path without having to pop up a dialog "Do you want to save the file?" at the end script and then saving to the new folder. - Does that make sense?
