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

Droplet misses opening/processing files in a batch, but does process them if dropped again

Community Beginner ,
Oct 13, 2022 Oct 13, 2022

Copy link to clipboard

Copied

Help - I thought I was loosing my mind, but I've tested carefully and this is definitely happening.

 

Background:  I have a droplet that does a number of manipulations to images that I send into photoshop as .NEF files.  The action outputs .PSD and .JPG files.  I have sent small batches of files into this droplet to produce a total of 31 .psd/.jpg file pairs.  I created another droplet to do another simple manipulation to output a temporary file with a transformation I need for printing.  

 

Problem:  When I select all 31 .jpg files in finder and drop them on my droplet, Photoshop does not output all 31 files.  Some number, but always the same files, are never opened, processed, and output.  I tried to analyze a small section of the batch by selecting the first 6 .jpg files (1.jpg through 6.jpg) and dropping just those onto the droplet.  I noticed that file #1 and #3 in the sequence are definitely never being opened by photoshop.  The history logging to text file feature explicitly shows these are not being opened & closed.  Even if I rename them so that they are ordered differently in the set, these two files do not get opened and processed when I select the batch of 6.  However, if I select those files (1 & 3) either individually or as a pair and drop them on the droplet, it outpus the proper corresponding 1 or 2 output files!  

 

Question:  What on Earth could this be?  How can I debug?  And is there a way to get this to be robust?  Once my batch sizes get bigger, this is going to be a real problem.  THANKS for any help!!

 

I'm on a M1max Mac Photoshop v23.5.1 Apple silicon version

 

Just in case you're still reading:  Below is a copy of the log where I've reverse renamed the files 1.jpg->66.jpg, 2.jpg->55.jpg, etc.  Again, files 1(66) and 3(44) never got opened.  Then I selected only 44 and 66 and dropped them on the droplet again.

2022-10-13 20:53:18 Photoshop launched
2022-10-13 20:53:21 File 11.jpg opened
2022-10-13 20:53:23 File 11.jpg closed
2022-10-13 20:53:23 File 22.jpg opened
2022-10-13 20:53:24 File 22.jpg closed
2022-10-13 20:53:24 File 33.jpg opened
2022-10-13 20:53:25 File 33.jpg closed
2022-10-13 20:53:25 File 55.jpg opened
2022-10-13 20:53:26 File 55.jpg closed
2022-10-13 20:53:28 Photoshop quit
2022-10-13 20:55:48 Photoshop launched
2022-10-13 20:55:52 File 44.jpg opened
2022-10-13 20:55:53 File 44.jpg closed
2022-10-13 20:55:53 File 66.jpg opened
2022-10-13 20:55:55 File 66.jpg closed
2022-10-13 20:55:57 Photoshop quit

TOPICS
Actions and scripting , macOS

Views

198

Translate

Translate

Report

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 ,
Oct 13, 2022 Oct 13, 2022

Copy link to clipboard

Copied

Not sure, can you compare Batch vs. Droplet?

 

2022-10-14_12-31-02.png

2022-10-14_12-30-15.png

Votes

Translate

Translate

Report

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 ,
Oct 13, 2022 Oct 13, 2022

Copy link to clipboard

Copied

Yes - I hadn't thought of that test.  I setup a batch job on an input directory that contained only the six files to run the action the droplet was utilizing.  This is the same input directory (and it's local to the machine) I was using in my droplet tests.  When I clicked OK, it produced all six files.  I'm unsure if there is a way in Batch to emulate the same selection method that happens when you use Finder to select a group of files to drop on a droplet.  But, this is an interesting result nonetheless.

 

I'd prefer to get the droplet approach working as I'll have to do this action a bunch of times, then not again for several weeks/months.  The droplet is a more "self documenting" in that I can name them "run me first" and "run me last" and I won't have to remember anything about what actions I'm actually trying to batch.  🙂

 

Thanks for the useful test suggestion.  Maybe this helps spur some other ideas.

Chris

 

log:

2022-10-13 22:08:01 Photoshop launched
2022-10-13 22:10:20 File 11.jpg opened
2022-10-13 22:10:21 File 11.jpg closed
2022-10-13 22:10:21 File 22.jpg opened
2022-10-13 22:10:22 File 22.jpg closed
2022-10-13 22:10:22 File 33.jpg opened
2022-10-13 22:10:23 File 33.jpg closed
2022-10-13 22:10:23 File 44.jpg opened
2022-10-13 22:10:24 File 44.jpg closed
2022-10-13 22:10:24 File 55.jpg opened
2022-10-13 22:10:25 File 55.jpg closed
2022-10-13 22:10:25 File 66.jpg opened
2022-10-13 22:10:25 File 66.jpg closed

Votes

Translate

Translate

Report

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 ,
Oct 13, 2022 Oct 13, 2022

Copy link to clipboard

Copied

Stephen, your experiment caused me to of another one.  Instead of using finder to select the files from the directory to drop on the droplet, I basically emulated the batch job exactly.  I navigated one directory higher, grabbed my test directory with the 6 files, and dropped that folder onto my droplet.  It produced 6 files.

 

So dropping the individual files definitely has a different result than dropping the directory containing them.

 

Going to go listen to Scorpion's "I can't explain" a couple of times now.  🙂

Votes

Translate

Translate

Report

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 ,
Oct 14, 2022 Oct 14, 2022

Copy link to clipboard

Copied

LATEST

I'd just use Image Processor Pro:

 

https://sourceforge.net/projects/ps-scripts/files/Image%20Processor%20Pro/v3_2%20betas/

It can batch and run an action. It can save a preset of all settings, or the run of the script can be recorded into an action.

 

Yes, I get the simplicity of droplets, but they aren't always as robust as alternative methods.

Votes

Translate

Translate

Report

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 ,
Oct 13, 2022 Oct 13, 2022

Copy link to clipboard

Copied

I thought about this test. I set up a batch job with an input directory containing only 6 files to perform an action with a Droplet. This is the same input directory used in the Droplet test (local to your machine). After clicking OK, all 6 files were created. I'm not sure if there's a way to emulate the same selection method in Batch as using the Finder to select a group of files and drop them onto a Droplet. However, this is an interesting result.

Votes

Translate

Translate

Report

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