
Photoshop 7.0 Scripting Guide
82
Scripting Photoshop
Clipboard interaction
3
3.16.2 Copy merged
You can also perform a merged copy. This will make a copy of all visible layers in the selected
area.
In AppleScript, use the copy merged command.
AS:
activate
select all of current document
copy merged selection of current document
In VB and JS, pass
true
for the Merged parameter of the Copy methods.
VB:
docRef.Selection.Copy True
JS:
docRef.selection.copy(true);
3.16.3 Cut
The Cut command operates on both art layers and selections, so you can cut an entire art layer
or only the selection of a visible layer. The Cut method follows the same rules as the copy
command.
AS:
activate
cut selection of current layer of current document
VB:
docRef.Selection.Cut
JS:
docRef.selection.cut();