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

Photoshop action/batch not consistently working, "Edit contents" not opening smart object sometimes

Community Beginner ,
Jul 06, 2023 Jul 06, 2023

Copy link to clipboard

Copied

I've created a Photoshop action, that updates all linked layers in a psd-file. It also opens a specifically named smart object, updates all layers in there and then closes it again.

 

This seemed to work fine at first, but when i use the action in batch, it does not consistently work on all the psd-files. For example: I used the batch and got an error on one file, used the batch again on the same folder and got an error on several different files.

 

I slowed down the action to find the mistake and it turns out Photoshop doesnt always open up the smart layer with the command "Edit contents". I can't figure out why, the selection of the layer works and the command "Edit contents" is also available.

 

Anyone had this problem before or got ideas how to fix this?

I've attached a screenshot of the action with English translations. I am using Photoshop 24.6.0. und Windows 10.

TOPICS
Actions and scripting , Windows

Views

248
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 Beginner ,
Jul 06, 2023 Jul 06, 2023

Copy link to clipboard

Copied

Didn't mean to attach the screenshot as a psd, here is the image:

screenshot.jpg

Votes

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

Copy link to clipboard

Copied

I'm not sure why, however, a script could be used to replace the action step (presuming that the script command from an English installation works for your localised version).

 

 

executeAction(stringIDToTypeID("placedLayerEditContents"));

 

 

or

 

 

executeAction(stringIDToTypeID('placedLayerEditContents'), undefined, DialogModes.NO)

 

 

or

 

 

app.runMenuItem(stringIDToTypeID('placedLayerEditContents'));

 

 

Good luck!

Votes

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

Copy link to clipboard

Copied

Thank you for your quick response.
Unfortunately i got the same results as before with each of the scripts.

Votes

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

Copy link to clipboard

Copied

If the action works on the same file outside of Batch, then the issue may be with Batch. Rather than using the Batch command, perhaps try using Image Processor or Image Processor Pro scripts to run the action instead.

Votes

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

Copy link to clipboard

Copied

I get the same result whether i use batch or use the action on a single psd file. 

As i was trying different things to fix it, I noticed it always fails on the same files now. I tried remaking the action in one of the problem files and it turns out, once i open the smart object there, it doesn't only add "Edit contents" but also the step "Open". With the extra step it then works for that file, but then it doesn't work for the files where it previoulsy worked anymore. For those I get an error saying the the file couldn't be opened because it got moved or deleted.

Votes

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

Copy link to clipboard

Copied

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

Is the Smart Object »Logo_AARON_…« always an embedded Smart Object? 

Votes

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

Copy link to clipboard

Copied

LATEST

Yes the smart object "Logo_AARON..." is always embedded.

File, that needs "open" command:

mm_com_0-1688642675598.png

Error i get when i try it without the "open" command:
(Translation: The command "Update all changed contents" is momentarily not available.)

mm_com_1-1688642753083.png


File that doesn't need open command:

mm_com_2-1688642885860.png


Weird thing is, if i put the "open" command in the action and run it on a file where it works then, the next time i open that file both variants of the action then work for it (with or without the "open")

Votes

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

Copy link to clipboard

Copied

Not being able to reproduce the issue this is just a stab in the dark, but have you tried »stretching time« between the Selection of the Smart Object (which is definitely present in all files and has the exact same name there?) and opening it? 

By inserting something meaningless like creating a new Layer and deleting it for example (after which the Smart Object should be the active Layer again)? 

Votes

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

Copy link to clipboard

Copied

Good idea, but unfortunately it didn't work. Yes, the smart object definitely has the same name in all psd-files.

Votes

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