How to access the contents of a Smart object....
So ultimately this is what I'm trying to do:
I'm trying to make the life of my client easier. I want to give them a photoshop file that has a smart object manipulated to fit a design. I want the client to be able to just run a script that will change the image that is in that smart object to a new image.
So this is going to look really hacky I'm sure but this is where I'm at:
var fileRef1 = File(Folder.desktop.fsName + "/Image-1/new-image.png");
var docRef1 = app.open(fileRef1);
docRef1.artLayers["Background"].copy();
var fileRef2 = File(Folder.desktop.fsName + "/Image-1/image-1.psd")
var docRef2 = app.open(fileRef2)
docRef2.paste();
Running that opens all the images I required and copy and pastes the png into the PSD. Now if only could paste that image into the PSB file instead! The smart object layer is named "ScreenContents"
Any thoughts?
