Copy link to clipboard
Copied
I have an action which resizes and sharpens an image. It then runs a script which imports the layers from another open document (Watermark1600.psd)
After the script has run, the active document is always Watermark1600.psd, however I want it to be the last opened or previously active image (i.e. the image that has just been resized, sharpened and had the layers imported.)
I have Googled using a few connotations searching for what I want, to no avail.
Any help appreciated, thank you.
Copy link to clipboard
Copied
var act_doc = app.activeDocumnet;
app.activeDocument = act_doc;