Understanding Clipboard Interaction - Adobe PHOTOSHOP CS 2.0 - SCRIPTING GUIDE Manual

Table of Contents

Advertisement

Adobe Photoshop CS2 Scripting Guide
The following examples apply the Gaussian blur filter to the active layer.
AS
Use the
filter
filter current layer of current document using Gaussian blur ¬
with options { radius: 5 }
Note:
In the Adobe Photoshop CS2 AppleScript Scripting Reference, look up the
"Commands" chapter; also look up
VBS
appRef.docRef.ActiveLayer.ApplyGaussianBlur 5
Note:
In the Adobe Photoshop CS2 Visual Basic Scripting Reference, look up
and other methods whose name includes filter in the Methods table of the
"Interface" chapter.
JS
docRef.activeLayer.applyGaussianBlur(5)
Note:
In the Adobe Photoshop CS2 JavaScript Scripting Reference, look up
and other methods whose name includes filter in the Methods table of the
"Interface" chapter.
Other Filters
If the filter type that you want to use on your layer is not part of the scripting interface, you can use the
Action Manager from a JavaScript to run a filter. If you are using AppleScript, VBScript or VBScript, you can
run the JavaScript from your script. Refer to the Adobe Photoshop CS2 JavaScript Scripting Reference for
information on using the Action Manager. Also, see
.
page 31

Understanding Clipboard Interaction

The clipboard commands/methods in Photoshop CS2 operate on
commands can be used to operate on objects within a single document, or to move information between
documents.
The clipboard commands/methods of the art
selection/Selection/Selection
copy/Copy/copy()
copy merged/Copy
paste/Paste/paste()
paste into
value
cut/Cut/cut()
Note:
For information on copy, copy merged, paste, paste into, and cut functions, see Photoshop CS2
Help.
command and then both specify the layer and the name of the filter and any options.
Merge parameter value
/
IntoSelection parameter value
Copy
)
Photoshop CS2
Class filter options
'Executing JavaScripts from AS or VBS' on
layer/ArtLayer/ArtLayer
objects are:
/copy(
Scripting Photoshop CS2
filter
in the "Objects" chapter.
ApplyGaussianBlur
ArtLayer
applyGaussianBlur()
artLayer
and
ArtLayer
Selection
and
merge parameter value
intoSelection parameter
/paste(
66
command in the
method
object in the
method
object in the
objects. The
)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop cs2

Table of Contents