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

Auto-Save File After Creating Contact Sheet

Community Beginner ,
Mar 07, 2021 Mar 07, 2021

Does anyone know how we can use the Automate>Contact Sheet II process, but to have Photoshop automatically save and even just close the files once it's done? For many folders from many scanned rolls, it's daunting to File>Save (or even Command+S, obviously) and to follow all the prompts for everything for each contact sheet when we just want them saved and closed out of at the end...

TOPICS
Actions and scripting
22.6K
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

correct answers 1 Correct answer

Community Expert , Mar 12, 2021 Mar 12, 2021

You can find the updated code to auto-save here:

 

https://raw.githubusercontent.com/MarshySwamp/Auto-Save-to-JPG-From-Contact-Sheet-II/main/Auto-Save-to-JPG-From-Contact-Sheet-II.jsx

 

Auto-Save-to-JPG-From-Contact-Sheet-II

 

Step 1 will be to select the save folder for the JPG files.

Step 2 will be the standard Contact Sheet II interface

Step 3 will be a message that all of the contact sheets have been saved to a specified path the save path will be opened in the Finder/Explorer.

 

Perhaps X o

...
Translate
Adobe
Community Beginner ,
Nov 03, 2024 Nov 03, 2024

@Stephen_A_Marsh, thanks for your fast response and apologies for not replying earlier - got caught up with work. I have attached TIFF Options and Image Size screenshots for your reference.

 

anna_3003_0-1730677712696.png

anna_3003_1-1730677730115.png

As for the original folder name, I have attached a screenshot of how folders with my data/images look like typically. It's a naming system that's used on our microscope and there's no easy way to change it.

 

anna_3003_2-1730677757815.png

On the screenshot, you can see that the folders appear as:

TGFb Coculture d3 p1_41425

TGFb Coculture d4 p1_41428

TGFb Coculture d5 p1_41448

 

Ideally, the contact sheets generated when using the script should have the same names since the number of folders to process will be of the order of hundreds.

Hope this is helpful and thanks again!

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 ,
Nov 03, 2024 Nov 03, 2024

@anna_3003 â€“ Saving to TIFF rather than JPEG, that's easy.

 

What relevance does the Image Size screenshot have? How does this image size differ from the contact sheet size you set when running the script?

 

When you select the folder to process, do you enable the "include subfolders" checkbox?

 

Naming the contact sheet after the root or subfolder isn't easy for me to find, the script is long and complex.

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 Beginner ,
Nov 03, 2024 Nov 03, 2024

@Stephen Marsh â€“

 

What relevance does the Image Size screenshot have? How does this image size differ from the contact sheet size you set when running the script?

No problem with the image size, I included this screenshot just in case - and I can see now it was redundant.

 

When you select the folder to process, do you enable the "include subfolders" checkbox?

Yes, and it works fine.

 

Naming the contact sheet after the root or subfolder isn't easy for me to find, the script is long and complex.

 Well, it was worth a try 🙂 Thanks!

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 ,
Nov 03, 2024 Nov 03, 2024
quote

Naming the contact sheet after the root or subfolder isn't easy for me to find, the script is long and complex.

 

Well, it was worth a try 🙂 Thanks!


By @anna_3003

 

 

I'm sure that somebody else could do so, and with enough time/trial/error I might even find the relevant code buried somewhere in the 12,000+ lines of code!  :]

 

If you were willing to avoid the recursive processing of subfolders and select one folder at a time, then I would possibly have an option for you.

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 Beginner ,
Nov 03, 2024 Nov 03, 2024

I appreciate the help, and yes, wading through 12,000 lines of code doesn't sound like fun. Thanks for trying!

 

I'd be interested to know what this solution looks like for selecting one folder at a time. It might still be useful, do you mind sharing your thoughts on this?

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 ,
Nov 03, 2024 Nov 03, 2024
quote

I'd be interested to know what this solution looks like for selecting one folder at a time. It might still be useful, do you mind sharing your thoughts on this?


By @anna_3003

 

Here you go:

 

https://github.com/MarshySwamp/Auto-Save-to-TIFF-From-Contact-Sheet-II

 

https://raw.githubusercontent.com/MarshySwamp/Auto-Save-to-TIFF-From-Contact-Sheet-II/refs/heads/mai...

 

It is recommended that you don't install this script in the Presets/Scripts folder, just in case there is a conflict with the default Contact Sheet II script. Run this script from Photoshop's File > Script > Browse command and or record it into an action for ease of use.

 

You will be presented with a dialog: 'Select folder to use as the base filename and save location... (if you press cancel, the contact sheets will not auto name, save or close!)'

 

The folder that you select in this dialog should be the same folder as the images that you select in the Contact Sheet user interface. If you do select the "sub folder" option, the files will be named after the parent/root folder and not the sub folder.

 

Keep in mind that this is all a hack/kludge, hope this helps!

 

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 Beginner ,
Nov 05, 2024 Nov 05, 2024
LATEST

Thank you so much, that is very helpful!

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