Adobe 27510753 Scripting Guide - Page 51

Using ExtendScript Tools and Features

Page 51 highlights

Adobe InDesign CS2 Scripting Guide Using ExtendScript Tools and Features 43 4 Using ExtendScript Tools and Features ExtendScript is Adobe's extended implementation of JavaScript, and is used by all Adobe Creative Suite 2 applications that provide a scripting interface. In addition to implementing the JavaScript language according to the W3C specification, ExtendScript provides certain additional features and utilities. l For help in developing, debugging, and testing scripts, ExtendScript provides: l The ExtendScript Toolkit , an interactive development and testing environment for ExtendScript. l A global debugging object, the Dollar ($) Object. l A reporting utility for ExtendScript elements, the ExtendScript Reflection Interface. l In addition, ExtendScript provides these tools and features: l A localization utility for providing user-interface string values in different languages. See the "Localiz- ing ExtendScript Strings" section. l Global functions for displaying short messages in dialog boxes; see the "User Notification Helper Func- tions" section. l An object type for specifying measurement values together with their units. See the "Specifying Mea- surement Values" section. l Tools for combining scripts, such as a #include directive, and import and export statements. See the "Modular Programming Support" section. l Support for extending or overriding math and logical operator behavior on a class-by-class basis. See the "Operator Overloading" section. l ExtendScript provides a common scripting environment for all Adobe Creative Suite 2 applications, and allows interapplication communication through scripts. l To identify specific Adobe Creative Suite 2 applications, scripts must use application and namespace specifiers as described in the "Application and namespace specifiers " section. l Applications can run scripts automatically on startup. See the "Script Locations and Checking Application Installation" section. l For details about interapplication communication, see the Bridge JavaScript Reference, available with Adobe Creative Suite 2.

  • 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
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184

Adobe InDesign CS2 Scripting Guide
Using ExtendScript Tools and Features
43
4
Using ExtendScript Tools and Features
ExtendScript is Adobe’s extended implementation of JavaScript, and is used by all Adobe Creative Suite 2
applications that provide a scripting interface. In addition to implementing the JavaScript language according
to the W3C specification, ExtendScript provides certain additional features and utilities.
For help in developing, debugging, and testing scripts, ExtendScript provides:
The ExtendScript Toolkit , an interactive development and testing environment for ExtendScript.
A global debugging object, the
Dollar ($) Object.
A reporting utility for ExtendScript elements, the
ExtendScript Reflection Interface.
In addition, ExtendScript provides these tools and features:
A localization utility for providing user-interface string values in different languages. See the “Localiz-
ing ExtendScript Strings” section.
Global functions for displaying short messages in dialog boxes; see the “User Notification Helper Func-
tions” section.
An object type for specifying measurement values together with their units. See the “Specifying Mea-
surement Values” section.
Tools for combining scripts, such as a
#include
directive, and
import
and
export
statements. See
the “Modular Programming Support” section.
Support for extending or overriding math and logical operator behavior on a class-by-class basis. See
the “Operator Overloading” section.
ExtendScript provides a common scripting environment for all Adobe Creative Suite 2 applications, and
allows interapplication communication through scripts.
To identify specific Adobe Creative Suite 2 applications, scripts must use application and namespace
specifiers as described in the “Application and namespace specifiers “ section.
Applications can run scripts automatically on startup. See the “Script Locations and Checking
Application Installation” section.
For details about interapplication communication, see the
Bridge JavaScript Reference
, available with
Adobe Creative Suite 2.
l
l
l
l
l
l
l
l
l
l
l
l
l
l