Skip to main content
Participating Frequently
July 6, 2023
Question

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

  • July 6, 2023
  • 3 replies
  • 379 views

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.

This topic has been closed for replies.

3 replies

c.pfaffenbichler
Community Expert
Community Expert
July 6, 2023

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)? 

mm_comAuthor
Participating Frequently
July 6, 2023

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

Stephen Marsh
Community Expert
Community Expert
July 6, 2023

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!

mm_comAuthor
Participating Frequently
July 6, 2023

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

Stephen Marsh
Community Expert
Community Expert
July 6, 2023

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.

mm_comAuthor
Participating Frequently
July 6, 2023

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