save psd file to network drive on mac not working

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

flo
Posts: 1
Joined: Wed Nov 23, 2016 3:18 pm

save psd file to network drive on mac not working

Post by flo »

hi all,

my script should save a psd file in photoshop for mac to our network drive but the path seems to be not working. any idea?

save as section:

var saveOptionspsd = new PhotoshopSaveOptions();
saveOptionspsd.alphaChannels = false;
saveOptionspsd.annotations = false;
saveOptionspsd.embedColorProfile = true;
saveOptionspsd.layers = true;
saveOptionspsd.spotColors = false;
var path = Folder ("/server/share$/folder/subfolder");
var savePath = path + "/" + dessin + "_" + colorit + ".jpg";
var saveFile = new File(savePath);
app.activeDocument.saveAs(saveFile, saveOptionspsd, true, Extension.LOWERCASE);

dessin and colorit are values of a edittext. it is working with local path on mac and on windows with different windows path.
hopefully anyone is able to support me.

cheers
flo