Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 82585

Re: How do I create an action to save as, but into a different folder than the one I used to create the action?

$
0
0

If you want to give Scripting a try paste the following text into a new file in ExtendScript Toolkit and save it as a jsx-file into Photoshop’s Presets/Scripts-folder.

// saves jpg into same folder;

// be advised: this  overwrites existing jpgs of the same name without prompting.

// 2010, use it at your own risk;

#target photoshop;

if (app.documents.length > 0) {

var thedoc = app.activeDocument;

// getting the name and location;

var docName = thedoc.name;

if (docName.indexOf(".") != -1) {var basename = docName.match(/(.*)\.[^\.]+$/)[1]}

else {var basename = docName};

// getting the location, if unsaved save to desktop;

try {var docPath = thedoc.path}

catch (e) {var docPath = "~/Desktop"};

// jpg options;

var jpegOptions = new JPEGSaveOptions();

jpegOptions.quality = 12;

jpegOptions.embedColorProfile = true;

jpegOptions.matte = MatteType.NONE;

//save jpg as a copy:

thedoc.saveAs((new File(docPath+'/'+basename+'.jpg')),jpegOptions,true);

//that’s it; thanks to xbytor;

};


Viewing all articles
Browse latest Browse all 82585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>