Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: call save as dialog

$
0
0

Something like this?

var fName = app.activeDocument.name;
fName.match(/(.*)(\.[^\.]+)/) ? fName = fName.match(/(.*)(\.[^\.]+)/):fName = [fName, fName];
fName[1]+'.psd';
var myFile = new File('~/Desktop/'+fName[1]+'.psd');
var saveFile = myFile.saveDlg(undefined,"Photoshop:*.psd");
if(saveFile) {    app.activeDocument.saveAs( saveFile, new PhotoshopSaveOptions() );    }

 

Have fun

 


Viewing all articles
Browse latest Browse all 27456

Trending Articles



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