Photoshop Scripts for Image Layers (Javascript)
Hi,
I have some code which opens a template file, then code below which opens another file. It then duplicates the layer on the second file to original file opened.
var fileRef = new File("/z/FILE.psd");
if(fileRef.exists){
app.open (fileRef);
app.activeDocument.activeLayer.duplicate (app.documents.getByName("psd.psd"));
app.activeDocument = app.documents.getByName("FILE.psd");
app.activeDocument.activeLayer.name = "none.psd";
I have a couple of requirements.
1. Once it has copied, i would like the second file to then close the file down i tried below but didnt work:
this.closeDoc(true)
2. When the image is copied it places it top left hand corner, but i need to adjust the H and V axis to position it within the document.
Can anyone help with this?
Thank you.
