Photoshop CS Scripting Guide
98
Scripting Photoshop
Clipboard interaction
3
3.17.5 Paste into command
The paste into command allows you to paste the contents of the clipboard into the selection in
a document. The destination selection border is then converted into a layer mask. You must
make the paste command's target document the current document before using the command.
AS:
activate
set newLayerRef to paste with clipping to selection
VB:
Set newLayerRef = docRef.Paste (True)
JS:
newLayerRef = docRef.paste( true );