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

Bug: Batch action overwrites same file repeatedly

Community Beginner ,
Jun 08, 2018 Jun 08, 2018

Hi,

I'm a longtime Photoshop user and have used Batch actions extensively over the years. I'm running into an issue where my batch actions are just overwriting the same file over and over again, even though I have the "Override Action 'Open' Commands" and "Override Action 'Save As' Commands" options checked.

What I'm automating:

A folder of PDF files that need to be saved as TIFFs

My action:

  1. Open PDF with the following settings: 3000px width, RGB color mode, bounding box crop
  2. Save with the following settings: TIFF, no layers, LZW compression, transparency

Batch settings:

  • Select my convert to TIFF action
  • Source: Folder of PDFs
  • Override Action "Open" Commands checked
  • Destination: Folder to hold processed files
  • Override Action "Save As" Commands

Anyone else run into this bug or find a way around it?

(I'm running the latest Photoshop CC release, 19.1.4, on macOS Sierra 10.12.6)

6.3K
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 , Jun 08, 2018 Jun 08, 2018

It might be that in the Open step the Name of the pdf is recorded so every pdf opened will have the same name thus when batch saving, the document is over written over and over.

In the Batch dialog see if adding a Serial number(s) or Letter(s) under file naming works.

Batch processing pdf files in photoshop can very much be a pain.

Suggest you try the PDF Processor II script from here:

GitHub - Paul-Riggott/PS-Scripts: Photoshop Scripts

ppii.png

Translate
Adobe
Community Expert ,
Jun 08, 2018 Jun 08, 2018

You need to expand all the steps in your Batched Action to see whet is recorded in your Save As step.   Batch can override the save as folder location. However it will not override a file name recorded in an Action's Save As step.   Normally when you record a save as step in an action you want to batch you do not change the name offered by Photoshop when recording the save as step you just accept Photoshop default.  That action step will have no name recorded in it.  When the step is played the name will be defaulted to the current documents name.

For example this SaveAsJpeg the desternation Desktop folder can be overridden by batching the Action and override the destop save location.  The Current Document Name will be saved into batch desternation folder. Note: there is no File Name Recorded in the Action's Save step.  Just As: Jpeg, Quality:10, Matte:none  and  In: Location is recorded.

JJMack
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 ,
Jun 08, 2018 Jun 08, 2018

Thanks for the suggestion, JJMack​ – however, I checked and I do not have a filename recorded in my Save step, just like in your example (screenshot below).

photoshop-batch.png

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 ,
Jun 08, 2018 Jun 08, 2018

It look like you might always opening the same file and saving the same file. I have never tried overriding open steps.  I normal just point Batch to folders of source images and let the batch process open the files in that folder and process them through the Action. Expand the Open Step see if that step has the file name in it the you are always saving.

What is that open step for it would add an addition open document in Photoshop in addition to the document batch opened from you source PSD folder. That additional document would be save as  your tiff.  Did you insert a Menu Item File Open or record an Open step which most likely would record the filename you opened in the Open step. It looks like you may be opening a file by name. Yout Opem step has settings recorded > note My First Action that has the incerted menu iten File Open has no > in front of the step it would normally be an interactive step that could be overridden by Batch

JJMack
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 ,
Jun 08, 2018 Jun 08, 2018

OK my guess was wrong on Windows anyway.  I wrote I never user Override Open on Bat Action not I have.

I was wrong about the insert menu Item File Open.  Batch does not override that step on Windows  anyway that plays as and interactive open step when batched..

The recorded  file open which recorded the full path/filename in the step is overridden by Automate Batch option override open.  I was not expecting that.

So You should be able to batch an action that normally would always open the same file.  Batch files instead using override open.

My Batch action do not open the files being batched batch does that. My batch action may open other files within the action so It can copy stuff from the added document into the documents being batched.   Override Open would brake actions that do things like that.

Anyway I use Windows and on My machine  Action SaveAsJpeg worked without an open and Action SaveAsJpegOpenFile worked with override open but Action  SaveAsJjegIsetOpenMenu did not work with override open option.  The Open step was not overridden it was still an interactive open step.

JJMack
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 ,
Jun 08, 2018 Jun 08, 2018

Thanks for doing all those tests, JJMack. I do need my open action step in order to specify color mode, crop and pixel dimensions when opening the source PDFs, but the override open actions checkbox setting does work properly, allowing it to work through a whole folder of files. (I can see each file opening while the batch is running, so I can confirm it is cycling through the folder.) It seems it's just the override save actions that's not working.

I've used this exact process before when batching, I think I'm just running into a weird bug that is causing the override save action command to not be properly enabled.

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 ,
Jun 08, 2018 Jun 08, 2018

It that case you may want to state what Photoshop version you using and OS version.  If All document fail to be overridden or some.  I believe I have seen cases where a save as  that should have been overridden became  an interactive save as rather than an automated Save AS.

JJMack
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 ,
Jun 08, 2018 Jun 08, 2018

It might be that in the Open step the Name of the pdf is recorded so every pdf opened will have the same name thus when batch saving, the document is over written over and over.

In the Batch dialog see if adding a Serial number(s) or Letter(s) under file naming works.

Batch processing pdf files in photoshop can very much be a pain.

Suggest you try the PDF Processor II script from here:

GitHub - Paul-Riggott/PS-Scripts: Photoshop Scripts

ppii.png

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 ,
Jun 11, 2018 Jun 11, 2018

Thanks, Jeff Arola​, I'll give that a try and post my results back here.

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 ,
Jun 11, 2018 Jun 11, 2018

Jeff Arola​ happy to report the PDF Processor II script did exactly what I needed it to do.

Also, through some additional testing with Batches, it looks like the issue is that while the batch processes each image, it's giving them all the same name (the first one processed in the batch), causing the overwrite loop. If I add a sequence to the filename, I end up with the same name repeated for all 72 files (plus the sequence number). So I think the bug is specifically with the "Document Name" file naming step.

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 ,
Sep 04, 2018 Sep 04, 2018
LATEST

I'm also having the same problem.

the frustrating thing Is I've just transitioned from an ancient PS install (PS 7) that could do this without any problem ie batch convert PDFs to jpgs.

Very frustrating that CC can't do it - also unbelievable that the batch processing UI and UX is as dire as it was 10 or more years ago

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 ,
Jun 08, 2018 Jun 08, 2018

Although not a direct answer, you could always try the Image Processor and Image Processor Pro scripts, which can play actions.

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 ,
Jun 11, 2018 Jun 11, 2018

Yeah, I tried Image Processor, but it flattens TIFFs down and I loose the transparency.

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 ,
Jun 13, 2018 Jun 13, 2018

However Image Processor Pro does not have this limitation and can save layered TIFF files (not to mention that Image Processor could be edited to save layered files too).

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 ,
Jun 19, 2018 Jun 19, 2018

Thanks, @Stephen_A_Marsh, I'll give Image Processor Pro a try!

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