Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
If you are new to Photoshop Scripting might it not be easier to create a small custom Script instead of trying to customize a voluminous existing one?
After all if you only want to create tifs at a predetermined location a lot of the functionality of that Script would be useless to you anyway.
Copy link to clipboard
Copied
I'm basically trying to process a couple hundered pngs, each one in their own folder, into tiffs. Currently I had been opening about 6 at a time in photoshop, runing a small photoshop action script to each one to process them how i need it, then save them as tiffs but i realized that the image processor was able to do that and save them out into their own folders. The only problem was it was also creating a sub folder. The creation of the subfolder isnt the end of the world but I was just wondering if it would be easy to customize the script to not do that one step, because otherwise its doing exactly what i needed.
Copy link to clipboard
Copied
I'm not in front of Photoshop to test, however, Image Processor Pro has many more features:
https://sourceforge.net/projects/ps-scripts/files/Image%20Processor%20Pro/v3_2%20betas/
Also Picture Processor:
https://github.com/Paul-Riggott/PS-Scripts/blob/master/Picture%20Processor.jsx
Copy link to clipboard
Copied
thank you, the pro did it.
Copy link to clipboard
Copied
If so, mark the asnwer as correct solution 😉
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more