View Single Post
Old 05-21-2009, 02:33 PM  
uno
RIP Dodger. BEST.CAT.EVER
 
uno's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: NYC Area
Posts: 18,450
ok so for my purposes this should work:

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);
__________________
-uno
icq: 111-914
CrazyBabe.com - porn art
MojoHost - For all your hosting needs, present and future. Tell them I sent ya!
uno is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote