Połącz nazwę pliku do warstwy widzialnej
with(activeDocument) saveAs(File(path + '/' + name
.replace(/(?=\.\w{3}$)/, '_' + activeLayer.name)))
Yawning Yak
with(activeDocument) saveAs(File(path + '/' + name
.replace(/(?=\.\w{3}$)/, '_' + activeLayer.name)))