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.
Copy link to clipboard
Copied
Didn't mean to attach the screenshot as a psd, here is the image:
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!
Copy link to clipboard
Copied
Thank you for your quick response.
Unfortunately i got the same results as before with each of the scripts.
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.
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.
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?
Copy link to clipboard
Copied
Yes the smart object "Logo_AARON..." is always embedded.
File, that needs "open" command:
Error i get when i try it without the "open" command:
(Translation: The command "Update all changed contents" is momentarily not available.)
File that doesn't need open command:
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")
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)?
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.