
I always take for granted that #target Photoshop is the first line, but haven't needed to bring it to the front, as that seems to happen automatically for me.
Code: Select all
selectedfile = app.openDialog();
alert("Selected Location: \n" + selectedfile);
Code: Select all
var psdname = "whatever";
var psdpath = new Folder ("/Photostudio/Resources/PSD"); //If it's on a server
//var psdpath = new Folder ("~/Desktop/"); //If it's on the desktop
var psdfile = new File(psdpath + "/" + psdname + ".psd");