
Photoshop CS Scripting Guide
60
Scripting Photoshop
Working with units
3
3.6.2 Unit value useage
The following two tables list the properties of the classes and parameters of commands that are
defined to use unit values. Unit values for these properties and parameter, with the exception
of some text item properties, are based the graphics ruler setting.
T
ABLE
3.2
Object Properties
Object
AppleScript
Properties
Visual Basic
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