Copy link to clipboard
Copied
var savePath = new File( parentFolder.parent + '/' + name);
alert(savePath, 'Parent Folder Location', false);
newDoc.saveAs(savePath, saveOptions, false, Extension.LOWERCASE);
I can get to parent folder alert like this but it saves to the folder, not parent folder.
How can I do that?
Hard to say because you didn't post all the code. Normally I would have said that your problem is you can't use name as a variable. That is a property of app and returns 'Photoshop'.
If parentFolder is a Folder object you should get the parent folder.
Copy link to clipboard
Copied
var savePath = new File( parentFolder.parent + '/' + name);
I deleted "+ '/' + name" and now it works.
Copy link to clipboard
Copied
Hard to say because you didn't post all the code. Normally I would have said that your problem is you can't use name as a variable. That is a property of app and returns 'Photoshop'.
If parentFolder is a Folder object you should get the parent folder.
Copy link to clipboard
Copied
Thank you very much for your help!
I pasted the code in: http://forums.adobe.com/thread/1322581?tstart=0