Quote:
Originally Posted by Catalyst
i don't think u can.. I own/run retouching-on-the.net and I will ask some people on there.. because there are some really good photoshop people.
but let me make sure I have this correct
you have pics in
directory a
directory a
directory a
and then use action and then save it for a web.. and save it as
directory x
directory y
directory z
|
of course you can. the code I posted will save it in the same folder the input comes from (That's what I understand he wants). If he wants them to another folder, then he has to edit the code like this:
locate this at the beginning of code
Code:
var FileName = file.name.split('.');
var Filename = new File(decodeURI(outputFolder) + "/" + FileName[0] + ".jpg");
var testFile = new File(decodeURI(outputFolder) + "/" + FileName[0] + ".jpg");
var doc = activeDocument;
if(win.panel0.panel2.ResizeCheck.value) FitImage( parseInt(win.panel0.panel2.Width.text), parseInt(win.panel0.panel2.Height.text) );
if(win.panel0.panel2.Action.value) doAction(win.panel0.panel2.ActionName.selection.text, win.panel0.panel2.ActionSet.selection.text);
if(Filename.exists) testFile.rename(testFile.name.slice(0,-4) + time() + ".jpg");
SaveForWeb(Filename,parseInt(win.panel0.panel1.qual.selection));
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
change to this:
Code:
var FileName = file.name.split('.');
var Filename = new File(decodeURI(outputFolder) + "/b-" + FileName[0] + ".jpg");
var testFile = new File(decodeURI(outputFolder) + "/b-" + FileName[0] + ".jpg");
var doc = activeDocument;
if(win.panel0.panel2.ResizeCheck.value) FitImage( parseInt(win.panel0.panel2.Width.text), parseInt(win.panel0.panel2.Height.text) );
if(win.panel0.panel2.Action.value) doAction(win.panel0.panel2.ActionName.selection.text, win.panel0.panel2.ActionSet.selection.text);
if(Filename.exists) testFile.rename(testFile.name.slice(0,-4) + time() + ".jpg");
SaveForWeb(Filename,parseInt(win.panel0.panel1.qual.selection));
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
and now images from folderA will be saved to b-folderA, folderB to b-folderB and so on
