0% found this document useful (0 votes)
79 views

VBScript Reference

This document provides reference information about VBScript objects like ActionDescriptor, ActionList, and ActionReference. It describes their properties and methods.

Uploaded by

hassanein
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views

VBScript Reference

This document provides reference information about VBScript objects like ActionDescriptor, ActionList, and ActionReference. It describes their properties and methods.

Uploaded by

hassanein
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 87

VBScript Reference

ActionDescriptor

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Count Long read only Number of keys contained in the descriptor

Methods
Method: Parameters: Returns: What it does:
Clear None Clear the descriptor
Erase Key as Long None Erase a key from the descriptor
GetBoolean Key as Long Boolean Get the value of a key of type boolean
GetClass Key as Long Long Get the value of a key of type class
GetDouble Key as Long Double Get the value of a key of type double
GetEnumerationType Key as Long Long Get the enumeration type of a key
GetEnumerationValue Key as Long Long Get the enumeration value of a key
GetInteger Key as Long Long Get the value of a key of type integer
GetKey Index as Long Long Get ID of the Nth key
GetList Key as Long ActionList Get the value of a key of type list
GetObjectType Key as Long Long Get the class ID of an object in a key of type object
GetObjectValue Key as Long ActionDe- Get the value of a key of type object
scriptor
GetPath Key as Long String Get the value of a key of type Alias
GetReference Key as Long ActionRefer- Get the value of a key of type ActionReference
ence
GetString Key as Long String Get the value of a key of type string
GetType Key as Long PsDescValu- Get the type of a key
eType
GetUnitDoubleType Key as Long Long Get the unit type of a key of type UnitDouble
GetUnitDoubleValue Key as Long Double Get the value of a key of type UnitDouble
HasKey Key as Long Boolean Does the descriptor contain the provided key?
IsEqual OtherDesc as ActionDe- Boolean
scriptor
PutBoolean Key as Long, Value as None
Boolean
PutClass Key as Long, Value as Long None
PutDouble Key as Long, Value as None
Double
PutEnumerated Key as Long, EnumType as None
Long, Value as Long
PutInteger Key as Long, Value as Long None
PutList Key as Long, Value as None
ActionList
PutObject Key as Long, ClassID as None
Long, Value as ActionDe-
scriptor

1
VBScript Reference

Method: Parameters: Returns: What it does:

PutPath Key as Long, Value as String None


PutReference Key as Long, Value as Ac- None
tionReference
PutString Key as Long, Value as String None
PutUnitDouble Key as Long, UnitID as None
Long, Value as Double

2
VBScript Reference

ActionList

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Count Long read only Number of items in the list

Methods
Method: Parameters: Returns: What it does:
Clear None Clear the list
GetBoolean Index as Long Boolean Get the value of an item of type boolean
GetClass Index as Long Long Get the value of an item of type class
GetDouble Index as Long Double Get the value of an item of type double
GetEnumerationType Index as Long Long Get the enumeration type of an item
GetEnumerationValue Index as Long Long Get the enumeration value of an item
GetInteger Index as Long Long Get the value of an item of type integer
GetList Index as Long ActionList Get the value of an item of type list
GetObjectType Index as Long Long Get the class ID of an object in an item of type
object
GetObjectValue Index as Long ActionDe- Get the value of an item of type object
scriptor
GetPath Index as Long String Get the value of an item of type Alias
GetReference Index as Long ActionRefer- Get the value of an item of type ActionReference
ence
GetString Index as Long String Get the value of an item of type string
GetType Index as Long PsDescValu- Get the type of an item
eType
GetUnitDoubleType Index as Long Long Get the unit type of an item of type UnitDouble
GetUnitDoubleValue Index as Long Double Get the value of anm item of type UnitDouble
PutBoolean Value as Boolean None
PutClass Value as Long None
PutDouble Value as Double None
PutEnumerated EnumType as Long, Value None
as Long
PutInteger Value as Long None
PutList Value as ActionList None
PutObject ClassID as Long, Value as None
ActionDescriptor
PutPath Value as String None
PutReference Value as ActionReference None
PutString Value as String None
PutUnitDouble UnitID as Long, Value as None
Double

3
VBScript Reference

ActionReference

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object

Methods
Method: Parameters: Returns: What it does:
GetContainer ActionRefer-
ence
GetDesiredClass Long
GetEnumeratedType Long Get type of enumeration of an ActionReference
whose form is ‘Enumerated’
GetEnumeratedValue Long Get value of enumeration of an ActionReference
whose form is ‘Enumerated’
GetForm PsReference- Get form of ActionReference
FormType
GetIdentifier Long Get identifier value for an ActionReference whoxse
form is ‘Identifier’
GetIndex Long Get index value for an ActionReference whoxse
form is ‘Index’
GetName String Get name value for an ActionReference whoxse
form is ‘Name’
GetOffset Long Get offset value for an ActionReference whoxse
form is ‘Offset’
GetProperty Long Get property ID value for an ActionReference
whoxse form is ‘Property’
PutClass DesiredClass as Long None
PutEnumerated DesiredClass as Long, None
EnumType as Long, Value
as Long
PutIdentifier DesiredClass as Long, Value None
as Long
PutIndex DesiredClass as Long, Value None
as Long
PutName DesiredClass as Long, Value None
as String
PutOffset DesiredClass as Long, Value None
as Long
PutProperty DesiredClass as Long, Value None
as Long

4
VBScript Reference

Application

Properties
Property: Value type: Access: What it is:
ActiveDocument Document object read/write e frontmost document
Application Application object read only e application object
BackgroundColor SolidColor object read/write
DisplayDialogs PsDialogModes constant read/write Controls whether or not Photoshop displays
(psDisplayAllDialogs (1), dialogs
psDisplayErrorDialogs (2),
or psDisplayNoDialogs (3))
Documents Documents object read only e open documents
ForegroundColor SolidColor object read/write
FreeMemory Long read only e amount of unused memory available to Adobe
Photoshop
Name String read only e application’s name
Path String read only e full path of the location of the Photoshop ap-
plication
Preferences Preferences object read only Preference settings
ScriptingVersion String read only e version of the Scripting interface
SerialNumber String read only Serial number of Photoshop
Version String read only e version of Adobe Photoshop application
Visible Boolean read/write Is the Photoshop UI is visible?
WinColorSettings String read only Color settings

Methods
Method: Parameters: Returns: What it does:
ChangeColorSettings [Name as Variant], [File as None Set Color Settings to a named set or to the contents
Variant] of a settings file (Name: String, File: String)
CharIDToTypeID CharID as String Long Convert from a four character code to a runtime
ID
DoAction Action as String, From as None Play an action from the Actions Palette
String
DoJavaScript JavaScriptCode as String, String Execute JavaScript code (Arguments: Array of
[Arguments as Variant], String, ExecutionMode: PsJavaScriptExecution-
[ExecutionMode as Variant] Mode)
DoJavaScriptFile JavaScriptFile as String, String Execute javascript file (Arguments: Array of String,
[Arguments as Variant], ExecutionMode: PsJavaScriptExecutionMode)
[ExecutionMode as Variant]
ExecuteAction EventID as Long, [Descrip- ActionDe- Play an ActionManager event (Descriptor: Action-
tor as Variant], [DisplayDi- scriptor Descriptor, DisplayDialogs: PsDialogModes)
alogs as Variant]
ExecuteActionGet Reference as ActionRefer- ActionDe- Obtain an action descriptor
ence scriptor
Open Document as String, [As as Document Open the specified document (As: PsOpenDocu-
Variant] mentType)

5
VBScript Reference

Method: Parameters: Returns: What it does:

Purge Target as constant (psAll- None Purges one or more caches


Caches (4), psClipboard-
Cache (3), psHistoryCaches
(2), or psUndoCaches (1))
Quit None Quit the application
StringIDToTypeID StringID as String Long Convert from a string ID to a runtime ID
TypeIDToCharID TypeID as Long String Convert from a runtime ID to a character ID
TypeIDToStringID TypeID as Long String Convert from a runtime ID to a string ID

6
VBScript Reference

ArtLayer

Properties
Property: Value type: Access: What it is:
AllLocked Boolean read/write
Application Application object read only e application object
BlendMode PsBlendMode constant read/write
(psColorBlend (22),
psColorBurn (6), psColor-
Dodge (10), psDarken (4),
psDifference (18), psDis-
solve (3), psExclusion (19),
psHardLight (14), psHue
(20), psLighten (8), psLin-
earBurn (7), psLinearDodge
(11), psLinearLight (16),
psLuminosity (23), psMul-
tiply (5), psNormalBlend
(2), psOverlay (12), ps-
Passrough (1), psPinLight
(17), psSaturationBlend
(21), psScreen (9), psSo-
Light (13), or psVividLight
(15))
FillOpacity Double read/write e interior opacity of the layer (between 0.0 and
100.0)
Grouped Boolean read/write Is the layer grouped with the layer below?
IsBackgroundLayer Boolean read/write Is the layer a background layer?
Kind PsLayerKind constant read/write To create a text layer set this property to ‘text layer’
(psBrightnessContrastLayer on an empty art layer of type ‘normal’
(9), psChannelMixerLayer
(12), psColorBalanceL-
ayer (8), psCurvesLayer (7),
psGradientFillLayer (4),
psGradientMapLayer (13),
psHueSaturationLayer (10),
psInversionLayer (14), ps-
LevelsLayer (6), psNormal-
Layer (1), psPatternFillLayer
(5), psPosterizeLayer (16),
psSelectiveColorLayer (11),
psSolidFillLayer (3), psText-
Layer (2), or psreshold-
Layer (15))
Layer Layer object read only e Layer corresponding to the ArtLayer
LinkedLayers Variant read only Layer(s) the layer is linked with (Array of Object)
Name String read/write e name of the layer
Opacity Double read/write Master opacity of layer (between 0.0 and 100.0)
Parent Object read only is object’s parent
PixelsLocked Boolean read/write e layer’s non-transparent pixels are locked

7
VBScript Reference

Property: Value type: Access: What it is:

PositionLocked Boolean read/write


TextItem TextItem object read only e text item that is associated with the art layer.
Only valid for art layers whose ‘has text’ is true
TransparentPixelsLocked Boolean read/write
Visible Boolean read/write

Methods
Method: Parameters: Returns: What it does:
AdjustBrightnessContrast Brightness as Long, contrast None Adjust brightness and constrast
as Long
AdjustColorBalance [shadows as Variant], [mid- None Adjust color balance (shadows, midtones, high-
tones as Variant], [high- lights: Array of 3 Longs, range -100 to 100, pre-
lights as Variant], [preserve- serveLuminosity: Boolean)
Luminosity as Variant]
AdjustCurves curveShape as Variant None Adjust curves of the selected channels (curve-
Shape: Array of Array of 2 Longs -- i.e. an array of
points)
AdjustLevels inputRangeStart as Long, None Adjust levels of the selected channels
inputRangeEnd as Long,
inputRangeGamma as
Double, outputRangeStart
as Long, outputRangeEnd
as Long
ApplyAddNoise amount as Double, distribu- None Apply the add noise filter
tion as constant (psGaussi-
anNoise (2) or psUniform-
Noise (1)), monochromatic
as Boolean
ApplyBlur None Apply the blur filter
ApplyBlurMore None Apply the blur more filter
ApplyClouds None Apply the clouds filter
ApplyCustomFilter characteristics as Variant, None Apply the custom filter (characteristics: Array of 25
scale as Long, offset as Long Longs -- i.e. a 5x5 matrix)
ApplyDeInterlace eliminateFields as constant None Apply the De-Interlace filter
(psEvenFields (2) or psO-
ddFields (1)), createFields as
constant (psDuplication (1)
or psInterpolation (2))
ApplyDespeckle None Apply the despeckle filter
ApplyDifferenceClouds None Apply the difference clouds filter
ApplyDiffuseGlow graininess as Long, glowA- None Apply the diffuse glow filter
mount as Long, clearA-
mount as Long

8
VBScript Reference

Method: Parameters: Returns: What it does:

ApplyDisplace HorizontalScale as Long, None Apply the displace filter


VerticalScale as Long, dis-
placementType as constant
(psStretchToFit (1) or psTile
(2)), undefinedAreas as
constant (psRepeatEdgePix-
els (2) or psWrapAround
(1)), displacementMapFile
as String
ApplyDustAndScratches radius as Long, reshold None Apply the dust and scratches filter
as Long
ApplyGaussianBlur radius as Double None Apply the Gaussian blur filter
ApplyGlassEffect distortion as Long, smooth- None Apply the glass filter (Invert: Boolean, texture:
ness as Long, scaling as PsTextureType, textureFile: String)
Long, [Invert as Variant],
[texture as Variant], [tex-
tureFile as Variant]
ApplyHighPass radius as Double None Apply the high pass filter
ApplyLensFlare Brightness as Long, flare- None Apply the lens flare filter (flareCenter: Array of 2
Center as Variant, lensType Longs, i.e. a point)
as constant (psPrime105
(3), psPrime35 (2), or
psZoomLens (1))
ApplyMaximum radius as Double None Apply the maximum filter
ApplyMedianNoise radius as Double None Apply the median noise filter
ApplyMinimum radius as Double None Apply the minimum filter
ApplyMotionBlur Angle as Long, radius as None Apply the motion blur filter
Double
ApplyNTSC None Apply the NTSC colors filter
ApplyOceanRipple Size as Long, magnitude as None Apply the ocean ripple filter
Long
ApplyOffset Horizontal as Double, Verti- None Apply the offset filter
cal as Double, undefinedAr-
eas as constant (psOff-
setRepeatEdgePixels (3),
psOffsetSetToLayerFill (1),
or psOffsetWrapAround
(2))
ApplyPinch amount as Long None Apply the pinch filter
ApplyPolarCoordinates conversion as constant None Apply the polar coordinates filter
(psPolarToRectangular (2)
or psRectangularToPolar
(1))
ApplyRadialBlur amount as Long, blur- None Apply the radial blur filter
Method as constant
(psSpin (1) or psZoom (2)),
blurQuality as constant
(psRadialBlurBest (3),
psRadialBlurDra (1), or
psRadialBlurGood (2))

9
VBScript Reference

Method: Parameters: Returns: What it does:

ApplyRipple amount as Long, Size as None Apply the ripple filter


constant (psLargeRipple (3),
psMediumRipple (2), or
psSmallRipple (1))
ApplySharpen None Apply the sharpen filter
ApplySharpenEdges None Apply the sharpen edges filter
ApplySharpenMore None Apply the sharpen more filter
ApplyShear curve as Variant, unde- None Apply the shear filter (Array of Array of 2 Longs
finedAreas as constant -- i.e. an array of points)
(psRepeatEdgePixels (2) or
psWrapAround (1))
ApplySmartBlur radius as Double, reshold None Apply the smart blur filter
as Double, blurQuality as
constant (psSmartBlurHigh
(3), psSmartBlurLow (1),
or psSmartBlurMedium
(2)), mode as constant
(psSmartBlurEdgeOnly (2),
psSmartBlurNormal (1), or
psSmartBlurOverlayEdge
(3))
ApplySpherize amount as Long, mode as None Apply the spherize filter
constant (psHorizontal-
Spherize (2), psNormal-
Spherize (1), or psVertical-
Spherize (3))
ApplyStyle StyleName as String None
ApplyTextureFill textureFile as String None Apply the texture fill filter
ApplyTwirl Angle as Long None Apply the twirl filter
ApplyUnSharpMask amount as Double, radius as None Apply the unsharp mask filter
Double, reshold as Long
ApplyWave generatorNumber as Long, None Apply the wave filter
minimumWavelength as
Long, maximumWave-
length as Long, minimu-
mAmplitude as Long,
maximumAmplitude as
Long, HorizontalScale as
Long, VerticalScale as Long,
waveType as constant
(psSine (1), psSquare
(3), or psTriangular (2)),
undefinedAreas as constant
(psRepeatEdgePixels (2)
or psWrapAround (1)),
randomSeed as Long
ApplyZigZag amount as Long, ridges None Apply the zigzag filter
as Long, style as constant
(psAroundCenter (1),
psOutFromCenter (2), or
psPondRipples (3))

10
VBScript Reference

Method: Parameters: Returns: What it does:

AutoContrast None Adjust contrast of the selected channels automati-


cally
AutoLevels None Adjust levels of the selected channels using auto
levels option
Clear None Clear pixel values within the selection to transpar-
ency
Copy [Merge as Variant] None Copy the pixel values of the selection to the clip-
board, optionally a merged composite of visible
layers rather than simply those of the active layer
Cut None Cut the pixel values of the selection to the clip-
board
Desaturate None Desaturate the pixel values
Duplicate ArtLayer Duplicate the ArtLayer
Equalize None Equalize the levels
Invert None Inverts the currently selected layer or channels
Link With as Layer None Link the layer with another layer
Merge ArtLayer Merges the layer down. is will remove the layer
from the document. e method returns a refer-
ence to the art layer that this layer is merged into
MixChannels monochrome as Variant, None Only valid for RGB or CMYK documents (mono-
outputChannels as Variant chrome: Boolean, outputChannels: Array of Array
of Double)
MoveAer Application object None Move the ArtLayer in behind object
MoveBefore Application object None Move the ArtLayer in front of object
MoveToBeginning Application object None Move the ArtLayer to beginning of container
MoveToEnd Application object None Move the ArtLayer to end of container
Posterize levels as Long None
Rasterize Target as constant (psEn- None Reduce text and multi-layer effects to a flattened
tireLayer (5), psFillContent pixel value layer
(3), psLayerClippingPath
(4), psLinkedLayers (6),
psShape (2), or psTextCon-
tents (1))
Resize [Horizontal as Variant], None Scale the layer (Horizontal and Vertical: Double
[Vertical as Variant], [An- (percent), Anchor: PsAnchorPosition)
chor as Variant]
Rotate Angle as Double, [Anchor None Rotate the layer (Anchor: PsAnchorPosition)
as Variant]
SelectiveColor selectionMethod as con- None
stant (psAbsolute (2) or
psRelative (1)), [reds as
Variant], [yellows as Vari-
ant], [greens as Variant],
[cyans as Variant], [blues
as Variant], [magentas as
Variant], [whites as Variant],
[neutrals as Variant], [blacks
as Variant]
reshold level as Long None

11
VBScript Reference

Translate [DeltaX as Variant], [DeltaY None Moves the position relative to its current position
as Variant] (DeltaX and DeltaY: Double)
Unlink None Unlink the layer

12
VBScript Reference

ArtLayers

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Count Long read only
Index Long read only
Item ArtLayer object read only
Parent Object read only is object’s parent

Methods
Method: Parameters: Returns: What it does:
Add ArtLayer
Remove itemPtr as ArtLayer None
RemoveAll None

13
VBScript Reference

BitmapConversionOptions

Properties
Property: Value type: Access: What it is:
Angle Double read/write (only valid for ‘halone screen’ conversions)
Application Application object read only e application object
Frequency Double read/write (only valid for ‘halone screen’ conversions)
Method PsBitmapConversionType read/write
constant (psCustomPat-
tern (5), psDiffusionDither
(3), psHalfreshold (1),
psHaloneScreen (4), or
psPatternDither (2))
PatternName String read/write (only valid for ‘custom pattern’ conversions)
Resolution Double read/write Output resolution (in pixels per inch)
Shape PsBitmapHalfToneType read/write (only valid for ‘halone screen’ conversions)
constant (psHaloneCross
(6), psHaloneDiamond
(2), psHaloneEllipse
(3), psHaloneLine (4),
psHaloneRound (1), or
psHaloneSquare (5))

14
VBScript Reference

BMPSaveOptions

Properties
Property: Value type: Access: What it is:
AlphaChannels Boolean read/write Save alpha channels
Application Application object read only e application object
Depth PsBMPDepthType read/write Number of bits per sample
constant (psBMP16Bits
(16), psBMP1Bit (1),
psBMP24Bits (24),
psBMP32Bits (32),
psBMP4Bits (4),
psBMP8Bits (8), ps-
BMP_A1R5G5B5 (61),
psBMP_A4R4G4B4 (64),
psBMP_A8R8G8B8 (67),
psBMP_R5G6B5 (62),
psBMP_R8G8B8 (65),
psBMP_X1R5G5B5 (60),
psBMP_X4R4G4B4 (63), or
psBMP_X8R8G8B8 (66))
FlipRowOrder Boolean read/write
OSType PsOperatingSystem con- read/write Target OS. Windows or OS/2 (default: Windows)
stant (psOS2 (1) or psWin-
dows (2))
RLECompression Boolean read/write Should RLE compression be used?

15
VBScript Reference

Channel

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Color SolidColor object read/write Color of the channel
Histogram Variant read only A histogram of values for the channel (Array of
256 Longs)
Kind PsChannelType constant read/write Type of the channel
(psComponentChannel (1),
psMaskedAreaAlphaChan-
nel (2), psSelectedAr-
eaAlphaChannel (3), or
psSpotColorChannel (4))
Name String read/write e channel’s name
Opacity Double read/write Opacity of alpha channels (called solidity for spot
channels)
Parent Object read only is object’s parent
Visible Boolean read/write

Methods
Method: Parameters: Returns: What it does:
Duplicate Channel Duplicate the Channel
Merge None Merge a spot channel into the component channels

16
VBScript Reference

Channels

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Count Long read only
Index Long read only
Item Channel object read only
Parent Object read only is object’s parent

Methods
Method: Parameters: Returns: What it does:
Add Channel
Remove itemPtr as Channel None
RemoveAll None

17
VBScript Reference

CMYKColor

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Black Double read/write e black color value (between 0.0 and 100.0)
Cyan Double read/write e cyan color value (between 0.0 and 100.0)
Magenta Double read/write e magenta color value (between 0.0 and 100.0)
Yellow Double read/write e yellow color value (between 0.0 and 100.0)

18
VBScript Reference

DCS1_SaveOptions

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
DCS PsDCSType constant read/write
(psColorComposite (3),
psGrayscaleComposite (2),
or psNoComposite (1))
EmbedColorProfile Boolean read/write Embed color profile in document
Encoding PsSaveEncoding constant read/write Type of encoding to use for document
(psAscii (3), psBinary (1),
psJPEGHigh (5), psJPE-
GLow (2), psJPEGMaxi-
mum (6), or psJPEGMe-
dium (4))
HaloneScreen Boolean read/write Include halone screen
Interpolation Boolean read/write Use image interpolation
Preview PsPreviewType constant read/write Type of preview
(psEightBitTIFF (3),
psMonochromeTIFF (2), or
psNoPreview (1))
TransferFunction Boolean read/write Include transfer functions in document
VectorData Boolean read/write Include vector data

19
VBScript Reference

DCS2_SaveOptions

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
DCS PsDCSType constant read/write
(psColorComposite (3),
psGrayscaleComposite (2),
or psNoComposite (1))
EmbedColorProfile Boolean read/write Embed color profile in document
Encoding PsSaveEncoding constant read/write Type of encoding to use for document
(psAscii (3), psBinary (1),
psJPEGHigh (5), psJPE-
GLow (2), psJPEGMaxi-
mum (6), or psJPEGMe-
dium (4))
HaloneScreen Boolean read/write Include halone screen
Interpolation Boolean read/write Use image interpolation
MultiFileDCS Boolean read/write
Preview PsPreviewType constant read/write Type of preview
(psEightBitTIFF (3),
psMonochromeTIFF (2), or
psNoPreview (1))
SpotColors Boolean read/write Save spot colors
TransferFunction Boolean read/write Include transfer functions in document
VectorData Boolean read/write Include vector data

20
VBScript Reference

Property: Value type: Access: What it is:

Document

Properties
Property: Value type: Access: What it is:
ActiveChannels Variant read/write Selected channels for document (Array of
Object(s) / Channel)
ActiveHistoryBrushSource HistoryState object read/write e current history state to use with the history
brush for this document
ActiveHistoryState HistoryState object read/write e current history state for this document
ActiveLayer Variant read/write Selected layer for document (Object/Layer)
Application Application object read only e application object
ArtLayers ArtLayers object read only e top level art layers in this document
BackgroundLayer ArtLayer object read only Background layer for the document. Only valid for
documents that have a background layer
BitsPerChannel PsBitsPerChannelType con- read/write Number of bits per channel
stant (psDocument16Bits
(16), psDocument1Bit (1),
or psDocument8Bits (8))
Channels Channels object read only e channels in this document
ColorProfileName String read/write Name of color profile for document. Only valid for
documents that have been assigned a color profile
ColorProfileType PsColorProfileType con- read/write Type of color profile management for document
stant (psCustom (3), psNo
(1), or psWorking (2))
ComponentChannels Variant read only All color component channels for this document
(Array of Object(s) / Channel)
FullName String read only Full path name of document
Height Double read only Height of document (unit value)
Histogram Variant read only A histogram of values for the composite docu-
ment (Array of 256 Longs) Only available for RGB,
CMYK and ‘Indexed colors’ documents.
HistoryStates HistoryStates object read only e history states associated with this document
Info DocumentInfo object read only Document information
Layers Layers object read only e top level layers in this document
LayerSets LayerSets object read only e top level layer sets in this document
Managed Boolean read only Is the document a workgroup document?
mode PsDocumentMode constant read only Document mode
(psBitmap (5), psCMYK (3),
psDuotone (8), psGrayscale
(1), psIndexedColor (6),
psLab (4), psMultiChannel
(7), or psRGB (2))
Name String read only e document’s name
Parent Object read only is object’s parent
Path String read only e path of the document
QuickMaskMode Boolean read/write Is the document in the quick mask mode?
Resolution Double read only e resolution of the document (in pixels per inch)

21
VBScript Reference

Method: Parameters: Returns: What it does:

Saved Boolean read only Has the document been saved since last change?
Selection Selection object read only e document’s selection
Width Double read only Width of document (unit value)

Methods
Method: Parameters: Returns: What it does:
ChangeMode DestinationMode as con- None Change the mode of the document (Options:
stant (psConvertToBitmap BitmapConversionOptions/IndexedConversionO
(5), psConvertToCMYK (3), ptions)
psConvertToGrayscale (1),
psConvertToIndexedColor
(6), psConvertToLab (4),
psConvertToMultiChannel
(7), or psConvertToRGB
(2)), [Options as Variant]
Close [Saving as Variant] None Close the document (Saving: PsSaveOptions)
ConvertProfile DestinationProfile as String, None Convert the document from using one color profile
Intent as constant (psAb- to using an other (BlackpointCompensation: Bool-
soluteColorimetric (4), ean, Dither: Boolean)
psPerceptual (1), psRela-
tiveColorimetric (3), or ps-
Saturation (2)), [BlackPoint-
Compensation as Variant],
[Dither as Variant]
Crop Bounds as Variant, [Angle None Crop the document (Bounds: Array of 4 Doubles,
as Variant], [Width as Vari- Width: Double, Height: Double, Resolution:
ant], [Height as Variant], Double)
[Resolution as Variant]
Duplicate Document Duplicate the Document
Export ExportIn as String, [Expor- None Export paths to Illustrator file (ExportAs: PsEx-
tAs as Variant], [Options as portType, Options: ExportOptionsIllustrator)
Variant]
Flatten None Flatten all layers in the document
FlipCanvas Direction as constant None Flip the canvas horizontally or vertically
(psHorizontal (1) or psVer-
tical (2))
ImportAnnotations File as String None Import annotations into the document
MergeVisibleLayers None Flatten all visible layers in the document
Paste [IntoSelection as Variant] ArtLayer Paste contents of clipboard into the document
(IntoSelection: Boolean)
PrintOut [PostScriptEncoding as None Print the document (PostScriptEncoding: PsPrint-
Variant], [SourceSpace as Encoding, SourceSpace: PsSourceSpaceType,
Variant], [PrintSpace as PrintSpace: String, Intent: PsIntent, BlackPoint-
Variant], [Intent as Variant], Compensation: Boolean)
[BlackPointCompensation
as Variant]
RasterizeAllLayers None Rasterize all layers
ResizeCanvas [Width as Variant], [Height None Change the size of the canvas (Width: Double,
as Variant], [Anchor as Height: Double, Anchor: PsAnchorPosition)
Variant]

22
VBScript Reference

ResizeImage [Width as Variant], [Height None Change the size of the image (Width: Double,
as Variant], [Resolution as Height: Double, Resolution: Double, Resample-
Variant], [ResampleMethod Method: PsResampleMethod)
as Variant]
RevealAll None Expand document to show clipped sections
RotateCanvas Angle as Double None Rotate canvas of document
Save None Save the document
SaveAs SaveIn as String, [Options None Save the document with specific save op-
as Variant], [AsCopy as tions (Options: BitmapSaveOptions/
Variant], [ExtensionType as DCS1_SaveOptions/DCS2_SaveOptions,
Variant] EPSSaveOptions, GIFSaveOptions/
JPEGSaveOptions/PDFSaveOptions/
PICTFileSaveOptions/PixarSaveOptions/
PNGSaveOptions/SGIRGBSaveOptions/
TargaSaveOptions/TiffSaveOptions, AsCopy: Bool-
ean, ExtensionType: PsExtensionType)
SplitChannels Variant Split channels of the document (returns an Array
of Document)
Trap Width as Long None Apply trap to a CMYK document
Trim [Type as Variant], [Top as None Crop the document using selective criteria (Type:
Variant], [Le as Variant], PsTrimType, Top, Le, Bottom, Right: Boolean)
[Bottom as Variant], [Right
as Variant]

23
VBScript Reference

DocumentInfo

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Author String read/write
AuthorPosition String read/write
Caption String read/write
CaptionWriter String read/write
Category String read/write
City String read/write
Copyrighted PsCopyrightedType con- read/write
stant (psCopyrightedWork
(1), psPublicDomain (2), or
psUnmarked (3))
CopyrightNotice String read/write
Country String read/write
CreationDate String read/write
Credit String read/write
EXIF Variant read only List of key/value pairs describing document (Array
of Array String pairs)
Headline String read/write
Instructions String read/write
JobName String read/write
Keywords Variant read/write List of keywords (Array of String)
OwnerUrl String read/write
Parent Object read only is object’s parent
ProvinceState String read/write
Source String read/write
SupplementalCategories Variant read/write Array of String
Title String read/write
TransmissionReference String read/write
Urgency PsUrgency constant (psFour read/write
(4), psHigh (8), psLow
(1), psNone (0), psNormal
(5), psSeven (7), psSix (6),
psree (3), or psTwo (2))

24
VBScript Reference

Documents

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Count Long read only
Index Long read only
Item Document object read only
Parent Object read only is object’s parent

Methods
Method: Parameters: Returns: What it does:
Add [Width as Variant], [Height Object A document (Width: Double, Height: Double,
as Variant], [Resolution as Resolution: Double, Name: String, mode: PsDocu-
Variant], [Name as Variant], mentMode, initialFill: PsDocumentFill)
[mode as Variant], [initial-
Fill as Variant]

25
VBScript Reference

EPSOpenOptions

Properties
Property: Value type: Access: What it is:
AntiAlias Boolean read/write Use antialias?
Application Application object read only e application object
ConstrainProportions Boolean read/write Constrain proportions of image
Height Double read/write Height of image (unit value)
mode PsOpenDocumentMode read/write e document mode
constant (psOpenCMYK
(3), psOpenGray (1), psO-
penLab (4), or psOpenRGB
(2))
Resolution Double read/write e resolution of the document (in pixels per inch)
Width Double read/write Width of image (unit value)

26
VBScript Reference

EPSSaveOptions

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
EmbedColorProfile Boolean read/write Embed color profile in document
Encoding PsSaveEncoding constant read/write Type of encoding to use for document
(psAscii (3), psBinary (1),
psJPEGHigh (5), psJPE-
GLow (2), psJPEGMaxi-
mum (6), or psJPEGMe-
dium (4))
HaloneScreen Boolean read/write Include halone screen
Interpolation Boolean read/write Use image interpolation
Preview PsPreviewType constant read/write Type of preview
(psEightBitTIFF (3),
psMonochromeTIFF (2), or
psNoPreview (1))
PSColorManagement Boolean read/write Use Postscript color management
TransferFunction Boolean read/write Include transfer functions in document
TransparentWhites Boolean read/write Only valid when saving BitMap documents
VectorData Boolean read/write Include vector data

27
VBScript Reference

ExportOptionsIllustrator

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Path PsIllustratorPathType read/write Which path to export (default: document bounds)
constant (psAllPaths (2),
psDocumentBounds (1), or
psNamedPath (3))
PathName String read/write Name of path to export. Only valid if you are
exporting a named path

28
VBScript Reference

GIFSaveOptions

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Colors Long read/write Number of colors in palette (only settable for some
palette types)
Dither PsDitherType constant read/write Type of dither
(psDiffusion (2), psNo-
Dither (1), psNoise (4), or
psPattern (3))
DitherAmount Long read/write Amount of dither (only valid for diffusion. 1-
100%)
Forced PsForcedColors constant read/write
(psBlackWhite (2), psNo-
Forced (1), psPrimaries (3),
or psWeb (4))
Interlaced Boolean read/write Should rows be interlaced?
Matte PsMatteType constant read/write
(psBackgroundColorMatte
(3), psBlackMatte (5), ps-
ForegroundColorMatte (2),
psNetscapeGrayMatte (7),
psNoMatte (1), psSemiGray
(6), or psWhiteMatte (4))
Palette PsPaletteType constant read/write
(psExact (1), psLocalAdap-
tive (8), psLocalPercep-
tual (6), psLocalSelective
(7), psMacOSPalette (2),
psMasterAdaptive (11),
psMasterPerceptual (9),
psMasterSelective (10),
psPreviousPalette (12),
psUniform (5), psWebPal-
ette (4), or psWindowsPal-
ette (3))
PreserveExactColors Boolean read/write
Transparency Boolean read/write

29
VBScript Reference

GrayColor

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Gray Double read/write e gray value (between 0.0 and 100.0)

30
VBScript Reference

HistoryState

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Name String read only e channel’s name
Parent Object read only is object’s parent
Snapshot Boolean read only Is the history state a snapshot?

31
VBScript Reference

HistoryStates

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Count Long read only
Index Long read only
Item HistoryState object read only
Parent Object read only is object’s parent

32
VBScript Reference

HSBColor

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Brightness Double read/write e brightness value (between 0.0 and 100.0)
Hue Double read/write e hue value (between 0.0 and 360.0)
Saturation Double read/write e saturation value (between 0.0 and 100.0)

33
VBScript Reference

IndexedConversionOptions

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Colors Long read/write Number of colors in palette (only settable for some
palette types)
Dither PsDitherType constant read/write Type of dither
(psDiffusion (2), psNo-
Dither (1), psNoise (4), or
psPattern (3))
DitherAmount Long read/write Amount of dither (only valid for diffusion. 1-
100%)
Forced PsForcedColors constant read/write
(psBlackWhite (2), psNo-
Forced (1), psPrimaries (3),
or psWeb (4))
Matte PsMatteType constant read/write
(psBackgroundColorMatte
(3), psBlackMatte (5), ps-
ForegroundColorMatte (2),
psNetscapeGrayMatte (7),
psNoMatte (1), psSemiGray
(6), or psWhiteMatte (4))
Palette PsPaletteType constant read/write Type of palette
(psExact (1), psLocalAdap-
tive (8), psLocalPercep-
tual (6), psLocalSelective
(7), psMacOSPalette (2),
psMasterAdaptive (11),
psMasterPerceptual (9),
psMasterSelective (10),
psPreviousPalette (12),
psUniform (5), psWebPal-
ette (4), or psWindowsPal-
ette (3))
PreserveExactColors Boolean read/write
Transparency Boolean read/write

34
VBScript Reference

JPEGSaveOptions

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
EmbedColorProfile Boolean read/write Embed color profile in document
FormatOptions PsFormatOptionsType con- read/write
stant (psOptimizedBaseline
(2), psProgressive (3), or
psStandardBaseline (1))
Matte PsMatteType constant read/write
(psBackgroundColorMatte
(3), psBlackMatte (5), ps-
ForegroundColorMatte (2),
psNetscapeGrayMatte (7),
psNoMatte (1), psSemiGray
(6), or psWhiteMatte (4))
Quality Long read/write Quality of produced image (0-12)
Scans Long read/write Number of scans. Only valid for progressive type
JPEG files (value should be: 3, 4 or 5)

35
VBScript Reference

LabColor

Properties
Property: Value type: Access: What it is:
A Double read/write e a-value (between -128.0 and 127.0)
Application Application object read only e application object
B Double read/write e b-value (between -128.0 and 127.0)
L Double read/write e L-value (between 0.0 and 100.0)

36
VBScript Reference

Method: Parameters: Returns: What it does:

Layer

Properties
Property: Value type: Access: What it is:
AllLocked Boolean read/write
Application Application object read only e application object
ArtLayer ArtLayer object read only If the Layer is a ArtLayer then this property will
return a reference to the corresponding ArtLayer
object
BlendMode PsBlendMode constant read/write
(psColorBlend (22),
psColorBurn (6), psColor-
Dodge (10), psDarken (4),
psDifference (18), psDis-
solve (3), psExclusion (19),
psHardLight (14), psHue
(20), psLighten (8), psLin-
earBurn (7), psLinearDodge
(11), psLinearLight (16),
psLuminosity (23), psMul-
tiply (5), psNormalBlend
(2), psOverlay (12), ps-
Passrough (1), psPinLight
(17), psSaturationBlend
(21), psScreen (9), psSo-
Light (13), or psVividLight
(15))
LayerSet LayerSet object read only If the Layer is a LayerSet then this property will
return a reference to the corresponding LayerSet
object
LayerType PsLayerType constant read only Type of the Layer
(psArtLayer (1) or psLayer-
Set (2))
LinkedLayers Variant read only List of layers linked to the current layer (Array of
Object/Layer)
Name String read/write e name of the layer
Opacity Double read/write Master opacity of layer (between 0.0 and 100.0)
Parent Object read only is object’s parent
Visible Boolean read/write

Methods
Method: Parameters: Returns: What it does:
Duplicate Layer Duplicate the Layer
Link With as Layer None Link the layer with another layer
MoveAer Application object None Move the Layer in behind object
MoveBefore Application object None Move the Layer in front of object
MoveToBeginning Application object None Move the Layer to beginning of container

37
VBScript Reference

MoveToEnd Application object None Move the Layer to end of container


Resize [Horizontal as Variant], None Resize the layer (Horizontal, Vertical: Double,
[Vertical as Variant], [An- Anchor: PsAnchorPosition)
chor as Variant]
Rotate Angle as Double, [Anchor None Rotate the layer (Anchor: PsAnchorPosition)
as Variant]
Translate [DeltaX as Variant], [DeltaY None Move the layer relative to its current position (Del-
as Variant] taX, DeltaY: Double)
Unlink None Unlink the layer

38
VBScript Reference

Layers

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Count Long read only
Index Long read only
Item Layer object read only
Parent Object read only is object’s parent

Methods
Method: Parameters: Returns: What it does:
Remove itemPtr as Layer None
RemoveAll None

39
VBScript Reference

Method: Parameters: Returns: What it does:

LayerSet

Properties
Property: Value type: Access: What it is:
AllLocked Boolean read/write
Application Application object read only e application object
ArtLayers ArtLayers object read only e art layers in this layer set
BlendMode PsBlendMode constant read/write
(psColorBlend (22),
psColorBurn (6), psColor-
Dodge (10), psDarken (4),
psDifference (18), psDis-
solve (3), psExclusion (19),
psHardLight (14), psHue
(20), psLighten (8), psLin-
earBurn (7), psLinearDodge
(11), psLinearLight (16),
psLuminosity (23), psMul-
tiply (5), psNormalBlend
(2), psOverlay (12), ps-
Passrough (1), psPinLight
(17), psSaturationBlend
(21), psScreen (9), psSo-
Light (13), or psVividLight
(15))
EnabledChannels Variant read/write Channels that are enabled for the layer set. Must be
a list of component channels (Array of Object/
Channel)
Layer Layer object read only e Layer corresponding to the LayerSet
Layers Layers object read only e layers in this layer set
LinkedLayers Variant read only List of layers linked to the current layer (Array of
Object/Layer)
Name String read/write e name of the layer
Opacity Double read/write Master opacity of layer (between 0.0 and 100.0)
Parent Object read only is object’s parent
Visible Boolean read/write

Methods
Method: Parameters: Returns: What it does:
Duplicate LayerSet Duplicate the layer set
Link With as Layer None Link the layer set with another layer
Merge ArtLayer Merge layer set. Returns a reference to the art layer
that is created by this method
MoveAer Application object None Move the LayerSet in behind object
MoveBefore Application object None Move the LayerSet in front of object
MoveToBeginning Application object None Move the LayerSet to beginning of container
MoveToEnd Application object None Move the LayerSet to end of container

40
VBScript Reference

Resize [Horizontal as Variant], None Scale the layer set (Horizontal, Vertical: Double,
[Vertical as Variant], [An- Anchor: PsAnchorPosition)
chor as Variant]
Rotate Angle as Double, [Anchor None Rotate the layer set (Anchor: PsAnchorPosition)
as Variant]
Translate [DeltaX as Variant], [DeltaY None Moves the layer set relative to its current position
as Variant] (DeltaX, DeltaY: Double)
Unlink None Unlink the layer set

41
VBScript Reference

LayerSets

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Count Long read only
Index Long read only
Item LayerSet object read only
Parent Object read only is object’s parent

Methods
Method: Parameters: Returns: What it does:
Add LayerSet
Remove itemPtr as LayerSet None
RemoveAll None

42
VBScript Reference

PDFOpenOptions

Properties
Property: Value type: Access: What it is:
AntiAlias Boolean read/write Use antialias?
Application Application object read only e application object
ConstrainProportions Boolean read/write Constrain proportions of image
Height Double read/write Height of image (unit value)
mode PsOpenDocumentMode read/write e document mode
constant (psOpenCMYK
(3), psOpenGray (1), psO-
penLab (4), or psOpenRGB
(2))
Page Long read/write Number of page to open
Resolution Double read/write e resolution of the document (in pixels per inch)
Width Double read/write Width of image (unit value)

43
VBScript Reference

PDFSaveOptions

Properties
Property: Value type: Access: What it is:
AlphaChannels Boolean read/write Save alpha channels
Annotations Boolean read/write Save annotations
Application Application object read only e application object
DowngradeColorProfile Boolean read/write Should the embedded color profile be downgraded
to version 2
EmbedColorProfile Boolean read/write Embed color profile in document
EmbedFonts Boolean read/write Embed fonts? (only valid if vector data is included)
Encoding PsPDFEncodingType read/write
constant (psPDFJPEG (2) or
psPDFZip (1))
Interpolation Boolean read/write Use image interpolation?
JPEGQuality Long read/write Quality of produced image (Only valid for JPEG
encoded PDF documents). Range: 0 to 12
Layers Boolean read/write Save layers
SpotColors Boolean read/write Save spot colors
Transparency Boolean read/write
UseOutlines Boolean read/write Use outlines for text? (only valid if vector data is
included)
VectorData Boolean read/write Include vector data

44
VBScript Reference

PhotoCDOpenOptions

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
ColorProfileName String read/write Profile to use when reading the image
ColorSpace PsPhotoCDColorSpace read/write Colorspace for image
constant (psLab16 (4),
psLab8 (3), psRGB16 (2), or
psRGB8 (1))
Orientation PsOrientation constant (ps- read/write
Landscape (1) or psPortrait
(2))
PixelSize PsPhotoCDSize constant read/write Dimensions of image
(psExtraLargePhotoCD
(5), psLargePhotoCD (4),
psMaximumPhotoCD (6),
psMediumPhotoCD (3),
psMinimumPhotoCD (1),
or psSmallPhotoCD (2))
Resolution Double read/write e resolution of the image (in pixels per inch)

45
VBScript Reference

PhotoshopSaveOptions

Properties
Property: Value type: Access: What it is:
AlphaChannels Boolean read/write Save alpha channels
Annotations Boolean read/write Save annotations
Application Application object read only e application object
EmbedColorProfile Boolean read/write Embed color profile in document
Layers Boolean read/write Save layers
SpotColors Boolean read/write Save spot colors

46
VBScript Reference

PICTFileSaveOptions

Properties
Property: Value type: Access: What it is:
AlphaChannels Boolean read/write Save alpha channels
Application Application object read only e application object
Compression PsPICTCompression read/write
constant (psJPEGHighPICT
(5), psJPEGLowPICT (2),
psJPEGMaximumPICT (6),
psJPEGMediumPICT (4),
or psNoPICTCompression
(1))
EmbedColorProfile Boolean read/write Embed color profile in document
Resolution PsPICTBitsPerPixels read/write Number of bits per pixel
constant (psPICT16Bits
(16), psPICT2Bits (2),
psPICT32Bits (32),
psPICT4Bits (4), or
psPICT8Bits (8))

47
VBScript Reference

PixarSaveOptions

Properties
Property: Value type: Access: What it is:
AlphaChannels Boolean read/write Save alpha channels
Application Application object read only e application object

48
VBScript Reference

PNGSaveOptions

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Interlaced Boolean read/write Should rows be interlaced?

49
VBScript Reference

Property: Value type: Access: What it is:

Preferences

Properties
Property: Value type: Access: What it is:
AdditionalPluginFolder String read/write
Application Application object read only e application object
AskBeforeSavingLayered- Boolean read/write
TIFF
AutoUpdateOpenDocu- Boolean read/write
ments
BeepWhenDone Boolean read/write
ColorChannelsInColor Boolean read/write
ColorPicker PsColorPicker constant read/write
(psAdobeColorPicker (1),
psAppleColorPicker (2),
psPlugInColorPicker (4), or
psWindowsColorPicker (3))
ColumnGutter Double read/write Gutter of columns (in points)
ColumnWidth Double read/write Width of columns (in points)
CreateFirstSnapshot Boolean read/write Automatically make first snapshot when a new
document is created?
DynamicColorSliders Boolean read/write
ExportClipboard Boolean read/write
GamutWarningOpacity Double read/write
GridSize PsGridSize constant read/write
(psLargeGrid (4), psMedi-
umGrid (3), psNoGrid (1),
or psSmallGrid (2))
GridStyle PsGridLineStyle constant read/write
(psGridDashedLine (2),
psGridDottedLine (3), or
psGridSolidLine (1))
GridSubDivisions Long read/write
GuideStyle PsGuideLineStyle constant read/write
(psGuideDashedLine (2) or
psGuideSolidLine (1))
ImageCacheForHistograms Boolean read/write
ImageCacheLevels Long read/write
ImagePreviews PsSaveBehavior con- read/write
stant (psAlwaysSave (2),
psAskWhenSaving (3), or
psNeverSave (1))
Interpolation PsResampleMethod con- read/write
stant (psBicubic (4), psBilin-
ear (3), psNearestNeighbor
(2), or psNoResampling
(1))

50
VBScript Reference

KeyboardZoomResizesWin- Boolean read/write


dows
MaximizeCompatibility Boolean read/write Maximize compatibility for Photoshop (PSD) files
MaxRAMuse Long read/write Maximum percentage of available RAM used by
Photoshop (between 5 and 100)
NonLinearHistory Boolean read/write Allow non-linear history?
NumberOfHistoryStates Long read/write Number of history states to remember (between 1
and 100)
OtherCursors PsOtherPaintingCursors read/write
constant (psPreciseOther
(2) or psStandardOther (1))
PaintingCursors PsPaintingCursors constant read/write
(psBrushSize (3), psPrecise
(2), or psStandard (1))
Parent Object read only is object’s parent
PixelDoubling Boolean read/write
PointSize PsPointType constant read/write Size of point/pica
(psPostScriptPoints (1) or
psTraditionalPoints (2))
RecentFileListLength Long read/write Number of items in the recent file list (between 0
and 30)
RedoKey PsRedoKey constant read/write
(psCommandShiZ (1),
psCommandY (3), or
psCommandZ (2))
RulerUnits PsUnits constant (psCM read/write Note: this is the unit that the scripting system will
(3), psInches (2), psMM (4), use when receiving and returning values
psPercent (7), psPicas (6),
psPixels (1), or psPoints
(5))
SavePaletteLocations Boolean read/write
ShowAsianTextOptions Boolean read/write
ShowEnglishFontNames Boolean read/write
ShowSliceNumber Boolean read/write
ShowToolTips Boolean read/write
SmartQuotes Boolean read/write
TypeUnits PsTypeUnits constant read/write
(psTypeMM (4), psTypePix-
els (1), or psTypePoints (5))
UseAdditionalPluginFolder Boolean read/write
UseDiffusionDither Boolean read/write
UseLowerCaseExtension Boolean read/write Should the file extension be lowercase
UseShiKeyForToolSwitch Boolean read/write
UseVideoAlpha Boolean read/write is option requires hardware support

51
VBScript Reference

RawFormatOpenOptions

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
BitsPerChannel Long read/write Number of bits for each channel (8 or 16)
ByteOrder PsByteOrderType constant read/write Only relevant for images with 16 bits per channel
(psIBMByteOrder (1) or
psMacOSByteOrder (2))
ChannelNumber Long read/write Number of channels in image
HeaderSize Long read/write
Height Long read/write Height of image (in pixels)
InterleaveChannels Boolean read/write Are the channels in the image interleaved?
RetainHeader Boolean read/write Retain header when saving?
Width Long read/write Width of image (in pixels)

52
VBScript Reference

RawSaveOptions

Properties
Property: Value type: Access: What it is:
AlphaChannels Boolean read/write Save alpha channels
Application Application object read only e application object
SpotColors Boolean read/write Save spot colors

53
VBScript Reference

RGBColor

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Blue Double read/write e blue color value (between 0.0 and 255.0)
Green Double read/write e green color value (between 0.0 and 255.0)
HexValue String read/write Hex representation of this color
Red Double read/write e red color value (between 0.0 and 255.0)

54
VBScript Reference

Method: Parameters: Returns: What it does:

Selection

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Parent Object read only is object’s parent

Methods
Method: Parameters: Returns: What it does:
Clear None Clear selection
Contract By as Double None Contracts the selection
Copy [Merge as Variant] None Copy selection to the clipboard, optionally of a flat-
tened view of all visible channels (Merge: Boolean)
Cut None Cut current selection to the clipboard
Deselect None Unselect
Expand By as Double None Expand selection
Feather By as Double None Feather edges of selection
Fill FillType as Variant, [mode None Fills the selection (FillType: SolidColor, Opacity:
as Variant], [Opacity as Long, PreserveTransparency: Boolean)
Variant], [PreserveTrans-
parency as Variant]
Grow Tolerance as Long, Anti- None Grow selection to include all adjacent pixels falling
Alias as Boolean within the specified tolerance range
Invert None Invert the selection
Load From as Channel, [Combi- None Load the selection from a channel (Combination:
nation as Variant], [Invert- PsSelectionType, Inverting: Boolean)
ing as Variant]
Resize [Horizontal as Variant], None Scale the pixels within the selection (Horizontal,
[Vertical as Variant], [An- Vertical: Double, Anchor: PsAnchorPosition)
chor as Variant]
ResizeBoundary [Horizontal as Variant], None Scale the boundary of selection (Horizontal, Verti-
[Vertical as Variant], [An- cal: Double, Anchor: PsAnchorPosition)
chor as Variant]
Rotate Angle as Double, [Anchor None Rotate the pixels within the selection (Anchor:
as Variant] PsAnchorPosition)
RotateBoundary Angle as Double, [Anchor None Rotate the boundary of selection (Anchor: PsAn-
as Variant] chorPosition)
Select Region as Variant, [Type as None Create a new or modify an existing selection
Variant], [Feather as Vari- (Region: Array of Array of 2 Doubles -- i.e. points,
ant], [AntiAlias as Variant] Type: PsSelectionType, Feather: Boolean, AntiAlias:
Boolean)
SelectAll None Select the entire image
SelectBorder Width as Double None Select the border of the selection
Similar Tolerance as Long, Anti- None Grow selection to include pixels throughout the
Alias as Boolean image falling within the tolerance range
Smooth radius as Long None

55
VBScript Reference

Store Into as Channel, [Combina- None Save the selection as a channel (Combination: Ps-
tion as Variant] SelectionType)
Stroke StrokeColor as Variant, None Strokes the selection (StrokeColor: SolidColor,
Width as Long, [Location Location: PsStrokeLocation, mode: PsColorBlend-
as Variant], [mode as Vari- Mode, Opacity: Long, PreserveTransparency:
ant], [Opacity as Variant], Boolean)
[PreserveTransparency as
Variant]
Translate [DeltaX as Variant], [DeltaY None Moves the pixels within the selection relative to
as Variant] their current positions (DeltaX, DeltaY: Double)
TranslateBoundary [DeltaX as Variant], [DeltaY None Moves the boundary of selection relative to its cur-
as Variant] rent position (DeltaX, DeltaY: Double)

56
VBScript Reference

SGIRGBSaveOptions

Properties
Property: Value type: Access: What it is:
AlphaChannels Boolean read/write Save alpha channels
Application Application object read only e application object
SpotColors Boolean read/write Save spot colors

57
VBScript Reference

SolidColor

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
CMYK CMYKColor object read/write
Gray GrayColor object read/write
HSB HSBColor object read/write
Lab LabColor object read/write
Model PsColorModel constant read/write Color model
(psCMYKModel (3),
psGrayscaleModel (1),
psHSBModel (5), psLab-
Model (4), psNoModel (50),
or psRGBModel (2))
NearestWebColor RGBColor object read only e nearest web color to the current color
RGB RGBColor object read/write

Methods
Method: Parameters: Returns: What it does:
IsEqual Color as SolidColor Boolean Return true if the provided color is visually equal
to this color

58
VBScript Reference

TargaSaveOptions

Properties
Property: Value type: Access: What it is:
Application Application object read only e application object
Resolution PsTargaBitsPerPixels read/write Number of bits per pixel
constant (psTarga16Bits
(16), psTarga24Bits (24), or
psTarga32Bits (32))
RLECompression Boolean read/write Should RLE compression be used?

59
VBScript Reference

Property: Value type: Access: What it is:

TextItem

Properties
Property: Value type: Access: What it is:
AlternateLigatures Boolean read/write Use alternate ligatures?
AntiAliasMethod PsAntiAlias constant read/write
(psCrisp (3), psNoAntialias
(1), psSharp (2), psSmooth
(5), or psStrong (4))
Application Application object read only e application object
AutoKerning Boolean read/write Whether to use a font’s built-in kerning informa-
tion
AutoLeadingAmount Double read/write Percentage to use for auto leading
BaselineShi Double read/write Baseline offset of text (unit value)
Capitalization PsCase constant (psAllCaps read/write e case of the text
(2), psNormalCase (1), or
psSmallCaps (3))
Color SolidColor object read/write Color of text
Contents String read/write e text in the layer
DesiredGlyphScaling Double read/write
DesiredLetterScaling Double read/write
DesiredWordScaling Double read/write
Direction PsDirection constant read/write Text orientation
(psHorizontal (1) or psVer-
tical (2))
FauxBold Boolean read/write Use faux bold?
FauxItalic Boolean read/write Use faux italic?
FirstLineIndent Double read/write (unit value)
Font String read/write Text face of the character
HangingPuntuation Boolean read/write Use Roman Hanging Punctuation?
Height Double read/write e height of paragraph text (unit value)
HorizontalScale Long read/write Horizontal scaling of characters (in percent)
HyphenateCapitalWords Boolean read/write Wheter to hyphenate capitalized words
Hyphenation Boolean read/write Use hyphenation?
HyphenationZone Double read/write e hyphenation zone (unit value)
HyphenLimit Long read/write Maximum number of consecutive hyphens
HyphenateAerFirst Long read/write Hyphenate aer this many letters
HyphenateBeforeLast Long read/write Hyphenate before this many letters
HyphenateWordsLonger- Long read/write Hyphenate words that have more than this number
an of letters
Justification PsJustification constant read/write Paragraph justification
(psCenter (2), psCenterJus-
tified (5), psFullyJustified
(7), psLe (1), psLeJusti-
fied (4), psRight (3), or
psRightJustified (6))

60
VBScript Reference

Property: Value type: Access: What it is:

Kind PsTextType constant read/write e type of the text


(psParagraphText (2) or
psPointText (1))
Language PsLanguage constant (ps- read/write
BrazillianPortuguese (13),
psCanadianFrench (4), ps-
Danish (17), psDutch (16),
psEnglishUK (2), psEngli-
shUSA (1), psFinnish (5),
psFrench (3), psGerman (6),
psItalian (9), psNorwegian
(10), psNynorskNorwegian
(11), psOldGerman (7),
psPortuguese (12), psSpan-
ish (14), psSwedish (15), or
psSwissGerman (8))
Leading Double read/write Leading (unit value)
LeIndent Double read/write (unit value)
Ligatures Boolean read/write Use ligatures?
MaximumGlyphScaling Double read/write
MaximumLetterScaling Double read/write
MaximumWordScaling Double read/write
MinimumGlyphScaling Double read/write
MinimumLetterScaling Double read/write
MinimumWordScaling Double read/write
NoBreak Boolean read/write
OldStyle Boolean read/write Use old style?
Parent Object read only is object’s parent
Position Variant read/write Upper-le origin point (Array of 2 Doubles) (unit
value)
RightIndent Double read/write (unit value)
Size Double read/write Font size in points
SpaceAer Double read/write (unit value)
SpaceBefore Double read/write (unit value)
Strikeru Boolean read/write
TextComposer PsTextComposer constant read/write Type of text composing engine to use
(psAdobeEveryLine (2) or
psAdobeSingleLine (1))
Tracking Double read/write Controls uniform spacing between multiple char-
acters
Underline Boolean read/write
UseAutoLeading Boolean read/write Whether to use a font’s built-in leading informa-
tion
VerticalScale Long read/write Vertical scaling of characters (in percent)
WarpBend Double read/write Percentage from -100 to 100
WarpDirection PsDirection constant read/write
(psHorizontal (1) or psVer-
tical (2))
WarpHorizontalDistortion Double read/write Percentage from -100 to 100

61
VBScript Reference

WarpStyle PsWarpStyle constant read/write


(psArc (2), psArcLower (3),
psArcUpper (4), psArch
(5), psBulge (6), psFish (11),
psFishEye (13), psFlag (9),
psInflate (14), psNoWarp
(1), psRise (12), psShell-
Lower (7), psShellUpper
(8), psSqueeze (15), psTwist
(16), or psWave (10))
WarpVerticalDistortion Double read/write Percentage from -100 to 100
Width Double read/write e width of paragraph text (unit value)

Methods
Method: Parameters: Returns: What it does:
ConvertToShape None Converts the text item and its containing layer to a
fill layer with the text changed to a clipping path
CreatePath None Creates a work path based on the text item

62
VBScript Reference

PsAdjustmentReference

Members
Name: Decimal Value: Description:
psAbsolute 2
psRelative 1

PsAnchorPosition

Members
Name: Decimal Value: Description:
psBottomCenter 8
psBottomLe 7
psBottomRight 9
psMiddleCenter 5
psMiddleLe 4
psMiddleRight 6
psTopCenter 2
psTopLe 1
psTopRight 3

PsAntiAlias

Members
Name: Decimal Value: Description:
psCrisp 3
psNoAntialias 1
psSharp 2
psSmooth 5
psStrong 4

PsBitmapConversionType

Members
Name: Decimal Value: Description:
psCustomPattern 5
psDiffusionDither 3
psHalfreshold 1
psHaloneScreen 4
psPatternDither 2

Appendix 1
VBScript Reference

PsBitmapHalfToneType

Members
Name: Decimal Value: Description:
psHaloneCross 6
psHaloneDiamond 2
psHaloneEllipse 3
psHaloneLine 4
psHaloneRound 1
psHaloneSquare 5

PsBitsPerChannelType

Members
Name: Decimal Value: Description:
psDocument16Bits 16
psDocument1Bit 1
psDocument8Bits 8

Appendix 2
VBScript Reference

PsBlendMode

Members
Name: Decimal Value: Description:
psColorBlend 22
psColorBurn 6
psColorDodge 10
psDarken 4
psDifference 18
psDissolve 3
psExclusion 19
psHardLight 14
psHue 20
psLighten 8
psLinearBurn 7
psLinearDodge 11
psLinearLight 16
psLuminosity 23
psMultiply 5
psNormalBlend 2
psOverlay 12
psPassrough 1
psPinLight 17
psSaturationBlend 21
psScreen 9
psSoLight 13
psVividLight 15

Appendix 3
VBScript Reference

PsBMPDepthType

Members
Name: Decimal Value: Description:
psBMP_A1R5G5B5 61
psBMP_A4R4G4B4 64
psBMP_A8R8G8B8 67
psBMP_R5G6B5 62
psBMP_R8G8B8 65
psBMP_X1R5G5B5 60
psBMP_X4R4G4B4 63
psBMP_X8R8G8B8 66
psBMP16Bits 16
psBMP1Bit 1
psBMP24Bits 24
psBMP32Bits 32
psBMP4Bits 4
psBMP8Bits 8

PsByteOrderType

Members
Name: Decimal Value: Description:
psIBMByteOrder 1
psMacOSByteOrder 2

PsCase

Members
Name: Decimal Value: Description:
psAllCaps 2
psNormalCase 1
psSmallCaps 3

Appendix 4
VBScript Reference

PsChangeMode

Members
Name: Decimal Value: Description:
psConvertToBitmap 5
psConvertToCMYK 3
psConvertToGrayscale 1
psConvertToIndexedColor 6
psConvertToLab 4
psConvertToMultiChannel 7
psConvertToRGB 2

PsChannelType

Members
Name: Decimal Value: Description:
psComponentChannel 1
psMaskedAreaAlphaChannel 2
psSelectedAreaAlphaChannel 3
psSpotColorChannel 4

Appendix 5
VBScript Reference

PsColorBlendMode

Members
Name: Decimal Value: Description:
psBehindBlend 24
psClearBlend 25
PsColorBlendMode 22
psColorBurnBlend 6
psColorDodgeBlend 10
psDarkenBlend 4
psDifferenceBlend 18
psDissolveBlend 3
psExclusionBlend 19
psHardLightBlend 14
psHueBlend 20
psLightenBlend 8
psLinearBurnBlend 7
psLinearDodgeBlend 11
psLinearLightBlend 16
psLuminosityBlend 23
psMultiplyBlend 5
psNormalBlendColor 2
psOverlayBlend 12
psPinLightBlend 17
psSaturationBlendColor 21
psScreenBlend 9
psSoLightBlend 13
psVividLightBlend 15

PsColorModel

Members
Name: Decimal Value: Description:
psCMYKModel 3
psGrayscaleModel 1
psHSBModel 5
psLabModel 4
psNoModel 50
psRGBModel 2

Appendix 6
VBScript Reference

PsColorPicker

Members
Name: Decimal Value: Description:
psAdobeColorPicker 1
psAppleColorPicker 2
psPlugInColorPicker 4
psWindowsColorPicker 3

PsColorProfileType

Members
Name: Decimal Value: Description:
psCustom 3
psNo 1
psWorking 2

PsCopyrightedType

Members
Name: Decimal Value: Description:
psCopyrightedWork 1
psPublicDomain 2
psUnmarked 3

PsCreateFields

Members
Name: Decimal Value: Description:
psDuplication 1
psInterpolation 2

PsDCSType

Members
Name: Decimal Value: Description:
psColorComposite 3
psGrayscaleComposite 2
psNoComposite 1

Appendix 7
VBScript Reference

PsDescValueType

Members
Name: Decimal Value: Description:
psAliasType 11
psBooleanType 5
psClassType 10
psDoubleType 2
psEnumeratedType 8
psIntegerType 1
psListType 6
psObjectType 7
psReferenceType 9
psStringType 4
psUnitDoubleType 3

PsDialogModes

Members
Name: Decimal Value: Description:
psDisplayAllDialogs 1
psDisplayErrorDialogs 2
psDisplayNoDialogs 3

PsDirection

Members
Name: Decimal Value: Description:
psHorizontal 1
psVertical 2

PsDisplacementMapType

Members
Name: Decimal Value: Description:
psStretchToFit 1
psTile 2

Appendix 8
VBScript Reference

PsDitherType

Members
Name: Decimal Value: Description:
psDiffusion 2
psNoDither 1
psNoise 4
psPattern 3

PsDocumentFill

Members
Name: Decimal Value: Description:
psBackgroundColor 2
psTransparent 3
psWhite 1

PsDocumentMode

Members
Name: Decimal Value: Description:
psBitmap 5
psCMYK 3
psDuotone 8
psGrayscale 1
psIndexedColor 6
psLab 4
psMultiChannel 7
psRGB 2

PsEliminateFields

Members
Name: Decimal Value: Description:
psEvenFields 2
psOddFields 1

PsExportType
Members
Name: Decimal Value: Description:
psIllustratorPaths 1

Appendix 9
VBScript Reference

PsExtensionType

Members
Name: Decimal Value: Description:
psLowercase 2
psUppercase 3

PsForcedColors

Members
Name: Decimal Value: Description:
psBlackWhite 2
psNoForced 1
psPrimaries 3
psWeb 4

PsFormatOptionsType

Members
Name: Decimal Value: Description:
psOptimizedBaseline 2
psProgressive 3
psStandardBaseline 1

PsGridLineStyle

Members
Name: Decimal Value: Description:
psGridDashedLine 2
psGridDottedLine 3
psGridSolidLine 1

PsGridSize

Members
Name: Decimal Value: Description:
psLargeGrid 4
psMediumGrid 3
psNoGrid 1
psSmallGrid 2

Appendix 10
VBScript Reference

PsGuideLineStyle

Members
Name: Decimal Value: Description:
psGuideDashedLine 2
psGuideSolidLine 1

PsIllustratorPathType

Members
Name: Decimal Value: Description:
psAllPaths 2
psDocumentBounds 1
psNamedPath 3

PsIntent

Members
Name: Decimal Value: Description:
psAbsoluteColorimetric 4
psPerceptual 1
psRelativeColorimetric 3
psSaturation 2

PsJavaScriptExecutionMode

Members
Name: Decimal Value: Description:
psBeforeRunning 3
psDebuggerOnError 2
psNeverShowDebugger 1

PsJustification

Members
Name: Decimal Value: Description:
psCenter 2
psCenterJustified 5
psFullyJustified 7
psLe 1
psLeJustified 4
psRight 3
psRightJustified 6

Appendix 11
VBScript Reference

PsLanguage

Members
Name: Decimal Value: Description:
psBrazillianPortuguese 13
psCanadianFrench 4
psDanish 17
psDutch 16
psEnglishUK 2
psEnglishUSA 1
psFinnish 5
psFrench 3
psGerman 6
psItalian 9
psNorwegian 10
psNynorskNorwegian 11
psOldGerman 7
psPortuguese 12
psSpanish 14
psSwedish 15
psSwissGerman 8

PsLayerCompressionType

Members
Name: Decimal Value: Description:
psRLELayerCompression 1
psZIPLayerCompression 2

Appendix 12
VBScript Reference

PsLayerKind

Members
Name: Decimal Value: Description:
psBrightnessContrastLayer 9
psChannelMixerLayer 12
psColorBalanceLayer 8
psCurvesLayer 7
psGradientFillLayer 4
psGradientMapLayer 13
psHueSaturationLayer 10
psInversionLayer 14
psLevelsLayer 6
psNormalLayer 1
psPatternFillLayer 5
psPosterizeLayer 16
psSelectiveColorLayer 11
psSolidFillLayer 3
psTextLayer 2
psresholdLayer 15

PsLayerType

Members
Name: Decimal Value: Description:
psArtLayer 1
psLayerSet 2

PsLensType

Members
Name: Decimal Value: Description:
psPrime105 3
psPrime35 2
psZoomLens 1

Appendix 13
VBScript Reference

PsMatteType

Members
Name: Decimal Value: Description:
psBackgroundColorMatte 3
psBlackMatte 5
psForegroundColorMatte 2
psNetscapeGrayMatte 7
psNoMatte 1
psSemiGray 6
psWhiteMatte 4

PsNewDocumentMode

Members
Name: Decimal Value: Description:
psNewBitmap 5
psNewCMYK 3
psNewGray 1
psNewLab 4
psNewRGB 2

PsNoiseDistribution

Members
Name: Decimal Value: Description:
psGaussianNoise 2
psUniformNoise 1

PsOffsetUndefinedAreas

Members
Name: Decimal Value: Description:
psOffsetRepeatEdgePixels 3
psOffsetSetToLayerFill 1
psOffsetWrapAround 2

Appendix 14
VBScript Reference

PsOpenDocumentMode

Members
Name: Decimal Value: Description:
psOpenCMYK 3
psOpenGray 1
psOpenLab 4
psOpenRGB 2

PsOpenDocumentType

Members
Name: Decimal Value: Description:
psAcrobatTouchUpImageOpen 20
psAliasPIXOpen 25
psBMPOpen 2
psCompuServeGIFOpen 3
psElectricImageOpen 26
psEPSOpen 22
psEPSPICTPreviewOpen 23
psEPSTIFFPreviewOpen 24
psFilmstripOpen 5
psJPEGOpen 6
psPCXOpen 7
psPDFOpen 21
psPhotoCDOpen 9
psPhotoshopDCS_1Open 18
psPhotoshopDCS_2Open 19
psPhotoshopEPSOpen 4
psPhotoshopOpen 1
psPhotoshopPDFOpen 8
psPICTFileFormatOpen 10
psPICTResourceFormatOpen 11
psPixarOpen 12
psPNGOpen 13
psPortableBitmapOpen 27
psRawOpen 14
psScitexCTOpen 15
psSGIRGBOpen 29
psSoImageOpen 30
psTargaOpen 16
psTIFFOpen 17
psWavefrontRLAOpen 28
psWirelessBitmapOpen 31

Appendix 15
VBScript Reference

PsOperatingSystem

Members
Name: Decimal Value: Description:
psOS2 1
psWindows 2

PsOrientation

Members
Name: Decimal Value: Description:
psLandscape 1
psPortrait 2

PsOtherPaintingCursors

Members
Name: Decimal Value: Description:
psPreciseOther 2
psStandardOther 1

PsPaintingCursors

Members
Name: Decimal Value: Description:
psBrushSize 3
psPrecise 2
psStandard 1

Appendix 16
VBScript Reference

PsPaletteType

Members
Name: Decimal Value: Description:
psExact 1
psLocalAdaptive 8
psLocalPerceptual 6
psLocalSelective 7
psMacOSPalette 2
psMasterAdaptive 11
psMasterPerceptual 9
psMasterSelective 10
psPreviousPalette 12
psUniform 5
psWebPalette 4
psWindowsPalette 3

PsPDFEncodingType

Members
Name: Decimal Value: Description:
psPDFJPEG 2
psPDFZip 1

PsPhotoCDColorSpace

Members
Name: Decimal Value: Description:
psLab16 4
psLab8 3
psRGB16 2
psRGB8 1

PsPhotoCDSize

Members
Name: Decimal Value: Description:
psExtraLargePhotoCD 5
psLargePhotoCD 4
psMaximumPhotoCD 6
psMediumPhotoCD 3
psMinimumPhotoCD 1
psSmallPhotoCD 2

Appendix 17
VBScript Reference

PsPICTBitsPerPixels

Members
Name: Decimal Value: Description:
psPICT16Bits 16
psPICT2Bits 2
psPICT32Bits 32
psPICT4Bits 4
psPICT8Bits 8

PsPICTCompression

Members
Name: Decimal Value: Description:
psJPEGHighPICT 5
psJPEGLowPICT 2
psJPEGMaximumPICT 6
psJPEGMediumPICT 4
psNoPICTCompression 1

PsPointType

Members
Name: Decimal Value: Description:
psPostScriptPoints 1
psTraditionalPoints 2

PsPolarConversionType

Members
Name: Decimal Value: Description:
psPolarToRectangular 2
psRectangularToPolar 1

PsPreviewType

Members
Name: Decimal Value: Description:
psEightBitTIFF 3
psMonochromeTIFF 2
psNoPreview 1

Appendix 18
VBScript Reference

PsPrintEncoding

Members
Name: Decimal Value: Description:
psAsciiEncoding 3
psBinaryEncoding 1
psJPEGEncoding 2

PsPurgeTarget

Members
Name: Decimal Value: Description:
psAllCaches 4
psClipboardCache 3
psHistoryCaches 2
psUndoCaches 1

PsRadialBlurMethod

Members
Name: Decimal Value: Description:
psSpin 1
psZoom 2

PsRadialBlurQuality

Members
Name: Decimal Value: Description:
psRadialBlurBest 3
psRadialBlurDra 1
psRadialBlurGood 2

PsRasterizeType

Members
Name: Decimal Value: Description:
psEntireLayer 5
psFillContent 3
psLayerClippingPath 4
psLinkedLayers 6
psShape 2
psTextContents 1

Appendix 19
VBScript Reference

PsRedoKey

Members
Name: Decimal Value: Description:
psCommandShiZ 1
psCommandY 3
psCommandZ 2

PsReferenceFormType

Members
Name: Decimal Value: Description:
psReferenceClassType 7
psReferenceEnumeratedType 5
psReferenceIdentifierType 3
psReferenceIndexType 2
psReferenceNameType 1
psReferenceOffsetType 4
psReferencePropertyType 6

PsResampleMethod

Members
Name: Decimal Value: Description:
psBicubic 4
psBilinear 3
psNearestNeighbor 2
psNoResampling 1

PsResetTarget

Members
Name: Decimal Value: Description:
psAllTools 2
psAllWarnings 1
psEverything 3

Appendix 20
VBScript Reference

PsRippleSize

Members
Name: Decimal Value: Description:
psLargeRipple 3
psMediumRipple 2
psSmallRipple 1

PsSaveBehavior

Members
Name: Decimal Value: Description:
psAlwaysSave 2
psAskWhenSaving 3
psNeverSave 1

PsSaveDocumentType

Members
Name: Decimal Value: Description:
psAliasPIXSave 25
psBMPSave 2
psCompuServeGIFSave 3
psElectricImageSave 26
psJPEGSave 6
psPCXSave 7
psPhotoshopDCS_1Save 18
psPhotoshopDCS_2Save 19
psPhotoshopEPSSave 4
psPhotoshopPDFSave 8
psPhotoshopSave 1
psPICTFileFormatSave 10
psPICTResourceFormatSave 11
psPixarSave 12
psPNGSave 13
psPortableBitmapSave 27
psRawSave 14
psScitexCTSave 15
psSGIRGBSave 29
psSoImageSave 30
psTargaSave 16
psTIFFSave 17
psWavefrontRLASave 28
psWirelessBitmapSave 31

Appendix 21
VBScript Reference

PsSaveEncoding

Members
Name: Decimal Value: Description:
psAscii 3
psBinary 1
psJPEGHigh 5
psJPEGLow 2
psJPEGMaximum 6
psJPEGMedium 4

PsSaveOptions

Members
Name: Decimal Value: Description:
psDoNotSaveChanges 2
psPromptToSaveChanges 3
psSaveChanges 1

PsSelectionType

Members
Name: Decimal Value: Description:
psDiminishSelection 3
psExtendSelection 2
psIntersectSelection 4
psReplaceSelection 1

PsSmartBlurMode

Members
Name: Decimal Value: Description:
psSmartBlurEdgeOnly 2
psSmartBlurNormal 1
psSmartBlurOverlayEdge 3

PsSmartBlurQuality

Members
Name: Decimal Value: Description:
psSmartBlurHigh 3
psSmartBlurLow 1
psSmartBlurMedium 2

Appendix 22
VBScript Reference

PsSourceSpaceType

Members
Name: Decimal Value: Description:
psDocumentSpace 1
psProofSpace 2

PsSpherizeMode

Members
Name: Decimal Value: Description:
psHorizontalSpherize 2
psNormalSpherize 1
psVerticalSpherize 3

PsStrokeLocation

Members
Name: Decimal Value: Description:
psCenterStroke 2
psInsideStroke 1
psOutsideStroke 3

PsTargaBitsPerPixels

Members
Name: Decimal Value: Description:
psTarga16Bits 16
psTarga24Bits 24
psTarga32Bits 32

PsTextComposer

Members
Name: Decimal Value: Description:
psAdobeEveryLine 2
psAdobeSingleLine 1

Appendix 23
VBScript Reference

PsTextType

Members
Name: Decimal Value: Description:
psParagraphText 2
psPointText 1

PsTextureType

Members
Name: Decimal Value: Description:
psBlocksTexture 1
psCanvasTexture 2
psFrostedTexture 3
psTextureFile 5
psTinyLensTexture 4

PsTiffEncodingType

Members
Name: Decimal Value: Description:
psNoTIFFCompression 1
psTiffJPEG 3
psTiffLZW 2
psTiffZIP 4

PsTrimType

Members
Name: Decimal Value: Description:
psBottomRightPixel 9
psTopLePixel 1
psTransparentPixels 0

PsTypeUnits

Members
Name: Decimal Value: Description:
psTypeMM 4
psTypePixels 1
psTypePoints 5

Appendix 24
VBScript Reference

PsUndefinedAreas

Members
Name: Decimal Value: Description:
psRepeatEdgePixels 2
psWrapAround 1

PsUnits

Members
Name: Decimal Value: Description:
psCM 3
psInches 2
psMM 4
psPercent 7
psPicas 6
psPixels 1
psPoints 5

PsUrgency

Members
Name: Decimal Value: Description:
psFour 4
psHigh 8
psLow 1
psNone 0
psNormal 5
psSeven 7
psSix 6
psree 3
psTwo 2

Appendix 25

You might also like