Skip to main content
Andreas Resch
Inspiring
December 3, 2022
Question

Updating all linked object

  • December 3, 2022
  • 3 replies
  • 7603 views

How can I update all linked files in a master file - including the ones inside smart objects? Can't find any commands for that. Preferably I would love to get a warning when opening the master file, that linked files were updated. Similar to what happens in InDesign when linked files are changed.

3 replies

c.pfaffenbichler
Community Expert
December 9, 2022

One additional note: 

It seems perfectly possible to create a set-up in which an automation gets caught in a loop. 

Suppose an image contains two Linked Smart Objects (A and B) that each contain the other as a Linked Smart Object. 

Saving any changes in A will cause it to update in B, which upon saving will update in A etc.

Andreas Resch
Inspiring
December 9, 2022

One more reason why this would work better in the core code. They can probably better access a list of external files that are included in the parent file. And working that off is much easier than looping through layers. Probably doing a lot of repetitive tasks in doing so as well.

c.pfaffenbichler
Community Expert
December 9, 2022

Actually such a situation would seem like a problem no matter where the updating would be done. 

 

I suppose it would be possible to include

• either a check to verify if the updating actually results in any changed pixels (and otherwise abandon the process) 

• or check the whole reference tree for »loops« 

but both options would probably have costs. 

Stephen Marsh
Community Expert
December 4, 2022
Andreas Resch
Inspiring
December 5, 2022

Thanks for the link. But I'm not sure that this is the right script. I want to update my modified linked files and not relink them. Besides that the script takes several minutes to go through my layers until it gets to the prompted window. And this is one of my smaller files. 

Stephen Marsh
Community Expert
December 5, 2022

@Andreas Resch 

 

Perhaps this previous topic will help?

 

 
Although the following is removing photoshop:DocumentAncestors metadata inside nested smart objects, the base code could be used and the metadata removal replaced with code for updating linked smart objects.
 
 
c.pfaffenbichler
Community Expert
December 3, 2022

Layer > Smart Objects > Update All Modified Content does not apply to Linked Smart Objects within Smart Objects (and further down). 

 

One could automate that via a Script that opens all Smart Objects (and Smart Objects within Smart Objects and so on …) to verify if all Linked Smart Objects within those are up-to-date. 

Have you done a Forum search yet? Maybe someone already created such a Script. 

 

Andreas Resch
Inspiring
December 3, 2022

I found one script, but it didn't work properly. This should be included in the core code. I'm surprised, that it's not already in there. I have files with dozens of linked smart objects and I can't go through all of them individually. There's also a chance that I missed one. 

c.pfaffenbichler
Community Expert
December 3, 2022

This should be included in the core code. 

I disagree. 

Linked Smart Objects in a document can be updated with Layer > Smart Objects > Update All Modified Content, if you stack Linked Smart Objects across serveral levels of Smart Objects within Smart Objects that’s your choice (mind you, I am not claiming that such a setup may not be perfectly sensible for specific situations). 

 

Please post the Script (or a Link to it), a sample image package and describe how it failed.