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

Re: Save As in Parent Directory

$
0
0

Perfect!  Many thanks!

 

//Save current file one directory up

var CurrentFolder = activeDocument.path;

var parentFolder = decodeURI(activeDocument.path.parent);

//$.writeln(parentFolder);

var BMPFile = new File(parentFolder+'/'+activeDocument.name);

BMPsaveOptions = new BMPSaveOptions();

BMPsaveOptions.depth = BMPDepthType.TWENTYFOUR;

BMPsaveOptions.osType = OperatingSystem.WINDOWS;

activeDocument.saveAs(BMPFile, BMPsaveOptions, true,Extension.LOWERCASE);


Viewing all articles
Browse latest Browse all 27456

Trending Articles



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