Hi,
I want to link an action to a key so that when i click, it saves the PSD that i am working on, but additionally saves a JPG copy in full resolution low quality (to share through dropbox) to a specific folder.
since i have a huge amount of subfolders where the PDS's are placed, i'd need to mirror that folder structure exactly in the dropbox folder.
So at first i found a script that i think can be used to save - here:
https://forums.adobe.com/thread/594393
the code would be:
var doc = app.activeDocument; var Path = doc.path; var Name = doc.name.replace(/\.[^\.]+$/, ''); var Suffix = ""; var saveFile = File(Path + "/" + Name + Suffix + ".jpg"); SaveJPEG(saveFile, 1); function SaveJPEG(saveFile, jpegQuality){ jpgSaveOptions = new JPEGSaveOptions(); jpgSaveOptions.embedColorProfile = true; jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE; jpgSaveOptions.matte = MatteType.NONE; jpgSaveOptions.quality = jpegQuality; activeDocument.saveAs(saveFile, jpgSaveOptions, true,Extension.LOWERCASE); }
But now i am at the problem of the path.
its kind of like the PSD has folder: E:\Project\Fullstorage\folder1\subfolder1\file.psd
while the JPG should be saved to something like D:\Dropbox\Project\Fullstorage\folder1\subfolder1\file.jpg
my string editing scripting skills aren't that good yet, anyone a suggestion on how to do this?
thanks!
M