View Single Post
Old 05-21-2009, 02:07 PM  
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by Catalyst View Post
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
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote