How can I create a new layer in a document with an image in that layer? I am using Pohotoshop CS5 and AppleScript.
I know how to make a new layer like this:
set newLayer to make art layer with properties {name:"LayerA"}
Just don’t know how to put an image in it.
Thanks.
If you need it copied straight from a file, that’s more complicated, and requires to open up a different app (Preview) and copy it from Preview. This may help:
That asks for an image, opens Preview, selects all of the image, copies it, and then quits.
To then paste it into Photoshop:
And that’s basically it! Hope that helped in some way.