Copy link to clipboard
Copied
var saveLocation = File("/Users/user/Desktop/cats/catT1"+i+".jpg"); var config = new JPEGSaveOptions(); config.quality = 10; app.activeDocument.saveAs(saveLocation, config);
I want to run this script over many items and so really need a way to automate / eliminate the clicking...
Any help much appreciated - I've lost hours to this!!
yourPath = File('~/desktop/jpgFile');
(jpg = new JPEGSaveOptions).quality = 12
activeDocument.saveAs(yourPath, jpg, true)
Copy link to clipboard
Copied
yourPath = File('~/desktop/jpgFile');
(jpg = new JPEGSaveOptions).quality = 12
activeDocument.saveAs(yourPath, jpg, true)
Copy link to clipboard
Copied
Man you just saved me 20,000 clicks. I love you 🙂
Copy link to clipboard
Copied
app.displayDialogs = DialogModes.NO;
saveAs() opens the manual 'Save As' window, instead of using given arguments