Adobe 23102480 Scripting Guide - Page 58

AppleScript, VBScript, Class/Object, Properties, Adobe Photoshop, CS3 AppleScript Scripting Reference

Page 58 highlights

Adobe Photoshop CS3 Scripting Guide Photoshop CS3 Scripting Photoshop CS3 58 Class/Object offset filter Text Item AppleScript Properties horizontal offset vertical offset baseline shift* first line indent* height hyphenation zone* leading* left indent* position right indent* space before* space after* width VBScript Properties JavaScript Properties HorizontalOffset horizontalOffset VerticalOffset verticalOffset BaselineShift* FirstLineIndent* Height HyphenationZone* Leading* LeftIndent* Position RightIndent* SpaceBefore* SpaceAfter* Width baselineShift* firstLineIndent* height hyphenationZone* leading* leftIndent* position rightIndent* spaceBefore* spaceAfter* width * 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) VBScript JavaScript Document.Crop (Bounds, Height, Width) document.crop (bounds, height, width) Document.ResizeCanvas (Height, Width) document.resizeCanvas (height, width) Document.ResizeImage (Height, Width) document.resizeImage (height, width) Selection.Contract (By) selection.contract (by) Selection.Expand (By) selection.expand (by) Selection.Feather (By) selection.feather (by) Selection.SelectBorder (Width) selection.selectBorder (width)

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85

Photoshop CS3
Adobe Photoshop CS3
Scripting Guide
Scripting Photoshop CS3
58
* 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.
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
AppleScript
VBScript
JavaScript
crop
(bounds, height,
width)
Document.Crop
(Bounds, Height, Width)
document.crop
(bounds, height,
width)
resize canvas
(height, width)
Document.ResizeCanvas
(Height, Width)
document.resizeCanvas
(height, width)
resize image
(height, width)
Document.ResizeImage
(Height, Width)
document.resizeImage
(height, width)
contract
(by)
Selection.Contract
(By)
selection.contract
(by)
expand
(by)
Selection.Expand
(By)
selection.expand
(by)
feather
(by)
Selection.Feather
(By)
selection.feather
(by)
select border
(width)
Selection.SelectBorder
(Width)
selection.selectBorder
(width)
Class/Object
AppleScript
Properties
VBScript
Properties
JavaScript
Properties