Stop image processor from creating new subfolders
Hi
I am trying to export out several files as tifs and have them export out to their original file locations ('save in same location' option) and Image processor is working perfectly except for the fact that it is creating sub folders for my tiffs. How do i stop it from creating the sub folder?
I've found this section in the jsx file which im guessing has to do with creating the subfolder, but i dont know what to replace this with to stop it from creating subfolders.
if ( this.params["tiff"] ) {
if ( ! this.runningFromBridge && this.params["keepstructure"] && ! this.params["saveinsame"] ) {
var subFolderText = filePathNoName;
subFolderText = subFolderText.replace( this.params["source"], inFolderLocation);
subFolderText += "/";
} else {
var subFolderText = inFolderLocation + "/TIFF/";
}
Folder( subFolderText ).create();
var historyState = app.activeDocument.activeHistoryState;
if ( this.params["tiffresize"] ) {
FitImage( this.params["tiffw"], this.params["tiffh"] );
}
if ( this.params["runaction"] ) {
doAction( this.params["action"], this.params["actionset"] );
}
var uniqueFileName = CreateUniqueFileName( subFolderText, fileNameNoPath, ".tif" );
if ( ! IsFolderWritable( subFolderText ) ) {
alert( strCannotWriteToFolder + File( subFolderText ).fsName );
} else {
SaveAsTIFF( uniqueFileName, this.params["icc"], this.params["lzw"] );
}
app.activeDocument.activeHistoryState = historyState;
}
Thanks!
