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

Re: Save As in Parent Directory

$
0
0

var CurrentFolder = activeDocument.path;

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

$.writeln(parentFolder);

BMPFile = new File(parentFolder, activeDocument.name)

BMPsaveOptions = new BMPSaveOptions();

BMPsaveOptions.depth = BMPDepthType.TWENTYFOUR;

BMPsaveOptions.osType = OperatingSystem.WINDOWS;

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

 

Here is my current code.  I am getting a general PS error on the last line of code saying this functionality may not be available in my version of PS6.


Viewing all articles
Browse latest Browse all 27456

Trending Articles