Working With Filters - Adobe PHOTOSHOP CS 2.0 - SCRIPTING GUIDE Manual

Table of Contents

Advertisement

Adobe Photoshop CS2 Scripting Guide
someColor.cmyk
'someColor.model = 2 indicates psColorModel --> 2 (psRGBModel)
End If
Look up the following in the Adobe Photoshop CS2 Visual Basic Scripting Reference:
model
JS
This example uses the
be converted.
var someColor = foregroundColor.cmyk
Look up the following in the Adobe Photoshop CS2 JavaScript Scripting Reference:
in the Properties table of the
cmyk
foregroundColor
Comparing Colors
Using the
statements return
AS
if equal colors foreground color with background color then
VBS
If (appRef.ForegroundColor.IsEqual(appRef.BackgroundColor)) Then
JS
if (app.foregroundColor.isEqual(backgroundColor))
Getting a Web Safe Color
To convert a color to a web safe color use the
NearestWebColor/nearestWebColor
AS
set myWebSafeColor to web safe color for foreground color
VBS
Dim myWebSafeColor
Set myWebSafeColor = appRef.ForegroundColor.NearestWebColor
JS
var webSafeColor = new RGBColor()
webSafeColor = app.foregroundColor.nearestWebColor

Working with Filters

To apply a filter in an AppleScript, you use the
. In VBScript and JavaScript, you use a specific filter method. For example, to apply a Gaussian blur
options
filter, you use the
ArtLayer
Note:
Please refer to Photoshop CS2 Help for information about the effects produced by individual filter
types.
and
in the
cmyk
Properties
foregroundColor
in the Properties table of the
equal colors/IsEqual/isEqual()
if the foreground color is visually equal to background color.
true
ApplyGaussianBlur/applyGaussianBlur()
object.
Photoshop CS2
table of the SolidColor object
property of the
Application
object
SolidColor
Application
command/method, you can compare colors. The following
web safe color
property of the
SolidColor
command with an option from the
filter
Scripting Photoshop CS2
object to get the original color to
object
command on AppleScript and the
object for VBScript and JavaScript.
method. All filter methods belong to the
65
Class filter

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PHOTOSHOP CS 2.0 - SCRIPTING GUIDE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Photoshop cs2

Table of Contents