Adobe 23101335 Scripting Guide - Page 47

Unit values based on type ruler setting, AppleScript, Visual Basic, JavaScript, Object, Properties

Page 47 highlights

Scripting Photoshop 3 Working with units TABLE 3.2 Object Text Item Object Properties AppleScript Properties Visual Basic Properties JavaScript Properties 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 * Unit values based on type ruler setting TABLE 3.3 Command Parameters AppleScript Visual Basic crop (bounds, height, width) Document.Crop (Bounds, Height, Width) resize canvas (height, width) Document.ResizeCanvas (Height, Width) resize image (height, width) Document.ResizeImage (Height, Width) contract (by) Selection.Contract (By) expand (by) feather (by) select border (width) Selection.Expand (By) Selection.Feather (By) Selection.SelectBorder (Width) translate (delta x, delta y) Selection.Translate (DeltaX, DeltaY) 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) selection.translate (deltaX, deltaY) Photoshop 7.0 Scripting Guide 47

  • 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
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91

Photoshop 7.0 Scripting Guide
47
Scripting Photoshop
Working with units
3
* Unit values based on type ruler setting
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
T
ABLE
3.3
Command Parameters
AppleScript
Visual Basic
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)
translate
(delta x, delta y)
Selection.Translate
(DeltaX, DeltaY)
selection.translate
(deltaX, deltaY)
T
ABLE
3.2
Object Properties
Object
AppleScript
Properties
Visual Basic
Properties
JavaScript
Properties