I need a script that I can run at the end of an action to rename the Background layer to the file name and move it to the top of all layers and hide visibility.
This is what I want the final document layers to look like, of course "filename" is the actual document filename. If I can change that to .jpg instead of a tif that would be very helpful too.
I'm using CC 2015 the most updated version.
I did find these scripts that aren't exactly what I need, but close, and I can't figure out how to manipulate them.
Open, Make and Rename Layer « Julieanne Kost's Blog
update: Now I'm thinking this may be totally unnecessary. The reason why I wanted the original filename.jpg was so I could export the image as an asset later down the road. I just tried creating the image asset and found that it creates a folder for each file, so if anyone can think of a better way, awesome. I was able to create an action and move all of my adjustment layers at the bottom instead of trying to move the filename layer to the top and that worked, but because each filename is different I can't select it and hide it in my action. It's a simple workaround but doesn't exactly do what I need.
Thanks!
Brandi