Thank you so much "Tomas" for your quick help, I have run this script but not thing happen when run this script, I have no idea where is the file is saved? I just want to save document with active layer's name only not final file or final result, because there many other layers etc i just want to save file with the name of top layer... I have attaching my .psd file for review. Actually I want to replace 3d screen image with new images, so i have smart object to change image but there is no way to save 3d screen with new inserted image, currently I'm using this script to change document name by layer name and then duplicate layer to main document and then hide duplicated layer so this hidden layer having actual name which i wan to save final document... current script to change layer name with document. var idoc = app.activeDocument; idoc.activeLayer.name = idoc.name.slice(0, idoc.name.lastIndexOf ("."));
... View more