Adobe 23101764 Scripting Guide - Page 37

Viewing Photoshop's type library VB, Viewing the JavaScript Environment

Page 37 highlights

Scripting Photoshop 3 Viewing Photoshop objects, commands and methods 3.2.2 Viewing Photoshop's type library (VB) 1. In any Visual Basic project, choose "Project > References." If you are using a built-in editor in a VBA application, choose "Tools > References." 2. Turn on the "Adobe Photoshop CS Object Library" option from the list of available references and click the "OK" button. 3. Choose "View > Object Browser." Visual Basic displays the "Object Browser" window. 4. Choose "Photoshop" from the list of open libraries shown in the top-left pull-down menu. 5. Click an object class such as Document (see below) to display more information. 3.2.3 Viewing the JavaScript Environment Because JavaScript is platform independent, there is no native script editor associated with it. Photoshop, however, provides a built-in run-time environment for executing JavaScripts. For more information on using JavaScript with Photoshop, see the JavaScript Reference Guide on the installation CD. Photoshop CS Scripting Guide 33

  • 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
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105

Photoshop CS Scripting Guide
33
Scripting Photoshop
Viewing Photoshop objects, commands and methods
3
3.2.2
Viewing Photoshop’s type library (VB)
1.
In any Visual Basic project, choose “Project > References.” If you are using a built-in editor
in a VBA application, choose “Tools > References.”
2.
Turn on the “Adobe Photoshop CS Object Library” option from the list of available
references and click the “OK” button.
3.
Choose “View > Object Browser.” Visual Basic displays the “Object Browser” window.
4.
Choose “Photoshop” from the list of open libraries shown in the top-left pull-down menu.
5.
Click an object class such as Document (see below) to display more information.
3.2.3
Viewing the JavaScript Environment
Because JavaScript is platform independent, there is no
native
script editor associated with it.
Photoshop, however, provides a built-in run-time environment for executing JavaScripts. For
more information on using JavaScript with Photoshop, see the JavaScript Reference Guide on
the installation CD.