Other Filters; Understanding Clipboard Interaction; Using The Copy And Paste Commands - Adobe 65014912 Manual

Photoshop cs4 extended
Table of Contents

Advertisement

C
3: Scripting Photoshop
HAPTER
AS
Use the
filter
filter current layer of current document using gaussian blur ¬
with options {radius:5}
N
: In the Adobe Photoshop CS4 AppleScript Scripting Reference, or in the Photoshop AppleScript
OTE
Dictionary, look up the
VBS
appRef.docRef.ActiveLayer.ApplyGaussianBlur 5
N
: In the Adobe Photoshop CS4 Visual Basic Scripting Reference, on in the Visual Basic Object Browser
OTE
look up the
with "Apply."
JS
docRef.activeLayer.applyGaussianBlur(5)
N
: In the Adobe Photoshop CS4 JavaScript Scripting Reference, or in the ExtendScript Object Model
OTE
Viewer look up the
name begins with "apply. "

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 or VBScript, you can run the
JavaScript from your script. See
Manager. Also, see

Understanding Clipboard Interaction

The clipboard commands in Photoshop operate on
commands can be used to operate on objects within a single document, or to move information between
documents.
The clipboard commands of the
(Selection/Selection)
copy (Copy/copy)
copy merged (Copy Merge parameter value/copy(merge parameter value))
cut(Cut/cut)
The clipboard commands of the
paste (Paste/paste)
paste into (Paste IntoSelection parameter value/paste(intoSelection parameter value))
N
: For information on copy, copy merged, paste, paste into, and cut functions, see Photoshop Help.
OTE

Using the copy and paste commands

The following examples copy the contents of the background layer to the clipboard, create a new
document, and then paste the clipboard contents to the new document. The scripts assume that there is a
document already open in Photoshop and that the document has a background layer.
command and then both specify the layer and the name of the filter and any options.
command; also look up class
filter
method and other methods of the
ApplyGaussianBlur
applyGaussianBlur()
"Action Manager" on page 73
"Executing JavaScripts from AS or VBS" on page
art layer (ArtLayer/ArtLayer)
objects are:
document/Document/Document
filter options
method and other methods of the
for information on using the Action
,
ArtLayer
Selection
object are:
Understanding Clipboard Interaction 54
.
object whose name begins
ArtLayer
object whose
artLayer
10.
, and
objects. The
Document
and
selection

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents