Adobe Photoshop CS3 Scripting Guide
Class/Object
offset filter
Text Item
* 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
●
CS3 AppleScript Scripting Reference, or use the Photoshop CS3 AppleScript Dictionary.
For VBScript methods, look up the method in the Methods table of the object in the "Interface" chapter
●
of the Adobe Photoshop CS3 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 CS3 JavaScript Scripting Reference, or use the ExtendScript
Object Model Viewer.
AppleScript
crop
(bounds, height,
width)
resize canvas
(height, width)
resize image
(height, width)
contract
(by)
expand
(by)
feather
(by)
select border
(width)
Photoshop CS3
AppleScript
VBScript
Properties
Properties
horizontal
HorizontalOffset
offset
VerticalOffset
vertical offset
baseline shift*
BaselineShift*
first line
FirstLineIndent*
indent*
Height
height
HyphenationZone*
hyphenation
Leading*
zone*
LeftIndent*
leading*
Position
left indent*
RightIndent*
position
SpaceBefore*
right indent*
SpaceAfter*
space before*
Width
space after*
width
VBScript
Document.Crop
(Bounds, Height, Width)
Document.ResizeCanvas
(Height, Width)
Document.ResizeImage
(Height, Width)
Selection.Contract
(By)
Selection.Expand
(By)
Selection.Feather
(By)
Selection.SelectBorder
(Width)
Scripting Photoshop CS3
JavaScript
Properties
horizontalOffset
verticalOffset
baselineShift*
firstLineIndent*
height
hyphenationZone*
leading*
leftIndent*
position
rightIndent*
spaceBefore*
spaceAfter*
width
JavaScript
document.crop
(bounds, height,
width)
document.resizeCanvas
(height, width)
document.resizeImage
(height, width)
selection.contract
(by)
selection.expand
(by)
selection.feather
(by)
selection.selectBorder
(width)
58