Script that renames <group> layer name to the name of the linked file it was embedded from
I am looking for a script that will rename the layer name <group> with the linked file name it was embedded from . I will try my best to explain with screenshots.
The Process:

I bring in files and place them on an artboard. Each layer is given the name <linked file>.

Once I embed the links the layer name is changed to <group>

I would like to replace the <group> name with the linked file name it was originally connected with.
I think this is possible with scripting, but I'm not sure.
Any help is greatly appreciated.
Thanks!
