C
HAPTER
3: Scripting Photoshop
Working with Units
58
To use this table, do one of the following:
➤
Look up the properties of the class in the
Adobe Photoshop CS4 AppleScript Scripting Reference
, or in the
Photoshop AppleScript Dictionary.
➤
Look up the property of the object in the
Adobe Photoshop CS4 Visual Basic Scripting Reference
, the
Adobe Photoshop CS4 JavaScript Scripting Reference
, the Visual Basic Object Browser, or the
ExtendScript Object Model Viewer.
* Unit values based on type ruler setting.
The following table lists the commands that use unit values as parameters or arguments. In some cases
the parameters are required. The VBScript and JavaScript methods are preceded by the object to which
they belong.
To use this table:
➤
For AppleScript commands, look up the command in the “Commands” chapter of the
Adobe
Photoshop CS4 AppleScript Scripting Reference
, or use the Photoshop AppleScript Dictionary.
➤
For VBScript methods, look up the method in the Methods table of the object in the “Interface”
chapter of the
Adobe Photoshop CS4 Visual Basic Scripting Reference
, or use the Visual Basic Object
Browser.
➤
For JavaScript methods, look up the method in the Methods table of the object in the “Object
Reference” chapter in the
Adobe Photoshop CS4 JavaScript Scripting Reference
, or use the ExtendScript
Object Model Viewer.
Class/object
AppleScript
properties
VBScript
properties
JavaScript
properties
Document
height
width
Height
Width
height
width
EPS open options
height
width
Height
Width
height
width
PDF open options
height
width
Height
Width
height
width
lens flare open options
height
width
Height
Width
height
width
offset filter
horizontal offset
vertical offset
HorizontalOffset
VerticalOffset
horizontalOffset
verticalOffset
Text Item
baseline shift*
first line indent*
height
hyphenation zone*
leading*
left indent*
position
right indent*
space before*
space after*
width
BaselineShift*
FirstLineIndent*
Height
HyphenationZone*
Leading*
LeftIndent*
Position
RightIndent*
SpaceBefore*
SpaceAfter*
Width
baselineShift*
firstLineIndent*
height
hyphenationZone*
leading*
leftIndent*
position
rightIndent*
spaceBefore*
spaceAfter*
width