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.