Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Stop image processor from creating new subfolders

New Here ,
Feb 02, 2022 Feb 02, 2022

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!

TOPICS
Actions and scripting , Windows
585
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Feb 03, 2022 Feb 03, 2022

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 03, 2022 Feb 03, 2022

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 03, 2022 Feb 03, 2022

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

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 03, 2022 Feb 03, 2022

thank you, the pro did it. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 03, 2022 Feb 03, 2022
LATEST

If so, mark the asnwer as correct solution 😉

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines