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

Is there any way to make use of the background saving in an Action?

Contributor ,
Jul 05, 2024 Jul 05, 2024

Copy link to clipboard

Copied

I have custom actions set that do Save as Copy -> PNG, just to save me the time of having to manually select PNG every single time I use save as copy. Normally, if I do it manually, I can keep working on other stuff while Photoshop is saving. However, when I use my action, Photoshop's UI is blocked until the saving is completed. Is there any way to use the background saving feature in my action?

TOPICS
Actions and scripting , Windows

Views

142

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 ,
Jul 06, 2024 Jul 06, 2024

Copy link to clipboard

Copied

Could you please post screenshots with the fully expanded Action and the pertinent Panels (Toolbar, Layers, Actions, Options Bar, …) visible? 

To which location do you save the 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
Contributor ,
Jul 06, 2024 Jul 06, 2024

Copy link to clipboard

Copied

I don't just save in one location. It happens no matter where the file is saved. I'll show a screenshot of the expanded action, sure, but what would any of the other panels have to do with this?

 

morphinapg_0-1720282657013.png

 

While the action itself shows a location, that's just the location I used when recording, because I had to, but because I have the show dialog option on, it just uses whatever the last location was, just like Save As Copy does. It doesn't always start on the desktop.

If I use the action, there's a pop up that says writing PNG format, so if it's a slow save, I can't do anything until that goes away. If I use my "ActionBrowser 2" plugin to trigger the action with a single click, then it still blocks the UI although I don't see that popup. I just see the busy mouse cursor until it's done.

But if I manually go to file -> save as copy, I don't get this popup, because "Save In Background" is set in Preferences -> File Handling. For some reason the background saving doesn't seem to work with the action though.

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 ,
Jul 07, 2024 Jul 07, 2024

Copy link to clipboard

Copied

quote

While the action itself shows a location,

You included the filename, too. 

That’s the reason, I assume, why you chose to toggle the dialog on and that does not seem technically necessary. 

Screenshot 2024-07-07 at 10.05.48.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
Contributor ,
Jul 07, 2024 Jul 07, 2024

Copy link to clipboard

Copied

Because it wouldn't record the action without me actually saving a file. It was just a dummy filename so that the action would record. Yes that's why I turned on dialogs so it wouldn't just keep saving in the same location and file name every time. I don't know how you recorded this without giving a file name.

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 ,
Jul 07, 2024 Jul 07, 2024

Copy link to clipboard

Copied

quote

I don't know how you recorded this without giving a file name.


By @morphinapg

 

If you don't touch/change the name when recording, only the absolute path is recorded and not the filename + absolute path.

 

atn.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
Contributor ,
Jul 07, 2024 Jul 07, 2024

Copy link to clipboard

Copied

I see. Doesn't really matter in my case since turning on the dialog means whatever I typed in there is not used anyway.

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 ,
Jul 07, 2024 Jul 07, 2024

Copy link to clipboard

Copied

quote

I see. Doesn't really matter in my case since turning on the dialog means whatever I typed in there is not used anyway.


By @morphinapg

 

Correct.

 

Actions are limited. Scripting provides more options for changing the file save path or name.

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 ,
Jul 07, 2024 Jul 07, 2024

Copy link to clipboard

Copied

@morphinapg 

 

It would appear that Action steps (whether inserted or recorded) and ExtendScript JavaScript code (not sure about the new UXP scripting) do not invoke background saving, which has to be initiated by a live user action.

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
Contributor ,
Jul 07, 2024 Jul 07, 2024

Copy link to clipboard

Copied

And no way to change that? If so, that's unfortunate.

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 ,
Jul 07, 2024 Jul 07, 2024

Copy link to clipboard

Copied

I looked at actions and ExtendScript, with no luck.

 

This only leaves UXP unless you go down the route of programming.

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
Contributor ,
Jul 07, 2024 Jul 07, 2024

Copy link to clipboard

Copied

While I could probably figure out how to do that (I do plenty of programming) I don't think it would be great since I have a bunch of actions that I use together, so I'd basically have to create my own action launcher extension or something, and then just customize that with the custom save code. Maybe it would be doable but idk if it would really be worth the effort.

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 ,
Jul 07, 2024 Jul 07, 2024

Copy link to clipboard

Copied

LATEST

The action save step can easily be replaced with a scripted save step... There is always a cost/benefit decision to be made.

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 ,
Jul 07, 2024 Jul 07, 2024

Copy link to clipboard

Copied

quote

I have custom actions set that do Save as Copy -> PNG, just to save me the time of having to manually select PNG every single time I use save as copy. 


By @morphinapg

 

 

Depending on your requirements, you could configure Quick Export for 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