for eg:
box1.psd have (red colored) "ball" smart object and cat layer
box2.psd have (yellow colored)"ball" smart object and dog layer
box3.psd have (green colored) "ball" smart object and rat layer
box4.psd have (pink colored) "ball" smart object and mat layer
i made an automation which saves cat layer as box1.jpg (this is fine)but when i click edit content of (red)"ball" object and save it in save as web in .png it save as (red)"ball" (its ok for the box1.psd file) but while running a batch for all the box files it is not fine because i am expecting box2.psd to give a dog.jpg and a (yellow colored)ball.png but it over writes the already created (redcoloured) ball with (yellow colored) ball (this is not fine).
so is there a script which can rename the smart objet same a its mother file or any script which can save .jpg and open smart object and save as .png with series of numbers as prifix or sufix.
thanks in advance