Preface |
|
xi | |
Acknowledgements |
|
xiii | |
PART ONE THE BIG PICTURE |
|
1 | (14) |
|
Introduction to scripts and scripting |
|
|
3 | (12) |
|
|
3 | (1) |
|
|
4 | (1) |
|
|
5 | (1) |
|
Characteristics of scripting languages |
|
|
5 | (2) |
|
Uses for scripting languages |
|
|
7 | (5) |
|
|
12 | (1) |
|
|
13 | (1) |
|
The universe of scripting languages |
|
|
13 | (2) |
PART TWO LANGUAGES |
|
15 | (278) |
|
Getting the job done in Perl |
|
|
17 | (47) |
|
|
17 | (1) |
|
|
18 | (6) |
|
|
24 | (4) |
|
|
28 | (1) |
|
|
29 | (3) |
|
|
32 | (4) |
|
|
36 | (1) |
|
|
37 | (4) |
|
Working with arrays and lists |
|
|
41 | (4) |
|
|
45 | (2) |
|
|
47 | (1) |
|
Strings, patterns and regular expressions |
|
|
48 | (10) |
|
|
58 | (3) |
|
|
61 | (1) |
|
|
62 | (1) |
|
Reference: operators and precedence |
|
|
63 | (1) |
|
|
64 | (54) |
|
|
64 | (1) |
|
Finer points of subroutines |
|
|
65 | (3) |
|
|
68 | (1) |
|
|
69 | (5) |
|
Navigating the file system |
|
|
74 | (2) |
|
|
76 | (2) |
|
|
78 | (1) |
|
|
79 | (7) |
|
|
86 | (2) |
|
|
88 | (1) |
|
|
89 | (3) |
|
|
92 | (5) |
|
Objects and modules in action |
|
|
97 | (3) |
|
|
100 | (3) |
|
Interfacing to the operating system |
|
|
103 | (6) |
|
Creating 'Internet-aware' applications |
|
|
109 | (3) |
|
'Dirty hands' Internet programming |
|
|
112 | (4) |
|
|
116 | (2) |
|
|
118 | (30) |
|
|
118 | (1) |
|
|
118 | (1) |
|
|
119 | (1) |
|
|
120 | (1) |
|
Understanding Tcl: the parser |
|
|
120 | (4) |
|
Variables and data in Tcl |
|
|
124 | (2) |
|
|
126 | (1) |
|
|
127 | (3) |
|
|
130 | (2) |
|
|
132 | (3) |
|
|
135 | (1) |
|
|
136 | (4) |
|
Working with files and pipes |
|
|
140 | (2) |
|
Putting it all together: some example code |
|
|
142 | (2) |
|
|
144 | (4) |
|
|
148 | (28) |
|
The eval, source, exec and uplevel commands |
|
|
148 | (1) |
|
|
149 | (3) |
|
|
152 | (3) |
|
|
155 | (1) |
|
|
156 | (3) |
|
Making applications 'Internet-aware' |
|
|
159 | (2) |
|
'Nuts-and-bolts' Internet programming |
|
|
161 | (5) |
|
Security issues: running untrusted code |
|
|
166 | (3) |
|
|
169 | (4) |
|
|
173 | (3) |
|
|
176 | (34) |
|
|
176 | (1) |
|
Fundamental concepts of Tk |
|
|
177 | (5) |
|
|
182 | (16) |
|
|
198 | (4) |
|
|
202 | (5) |
|
|
207 | (3) |
|
|
210 | (47) |
|
|
210 | (3) |
|
Visual Basic: the core language |
|
|
213 | (17) |
|
The Visual Basic way of objects |
|
|
230 | (1) |
|
Object models and type libraries |
|
|
231 | (1) |
|
|
232 | (9) |
|
|
241 | (4) |
|
|
245 | (2) |
|
Working with Visual Basic (the application) |
|
|
247 | (8) |
|
Reference: operators and operator precedence |
|
|
255 | (2) |
|
|
257 | (36) |
|
Developing Internet-aware applications |
|
|
257 | (5) |
|
|
262 | (2) |
|
The Visual Basic event model |
|
|
264 | (3) |
|
|
267 | (9) |
|
|
276 | (9) |
|
Creating ActiveX controls |
|
|
285 | (1) |
|
Interfacing to the Windows API |
|
|
286 | (2) |
|
Accessing external databases |
|
|
288 | (5) |
PART THREE SCRIPTING WEB CLIENTS AND SERVERS |
|
293 | (102) |
|
|
295 | (31) |
|
|
295 | (1) |
|
|
296 | (1) |
|
|
297 | (1) |
|
|
297 | (1) |
|
The JavaScript core language |
|
|
298 | (15) |
|
|
313 | (9) |
|
|
322 | (2) |
|
|
324 | (1) |
|
JavaScript operators and precedence |
|
|
325 | (1) |
|
|
326 | (18) |
|
|
326 | (1) |
|
The VBScript core language |
|
|
327 | (8) |
|
|
335 | (3) |
|
New features in VBScript 5 |
|
|
338 | (6) |
|
Scripting Web clients and servers |
|
|
344 | (24) |
|
Client-side Web scripting |
|
|
344 | (18) |
|
|
362 | (6) |
|
|
368 | (27) |
|
|
369 | (1) |
|
|
369 | (1) |
|
The Netscape document object model |
|
|
370 | (5) |
|
The Microsoft document object model |
|
|
375 | (5) |
|
The W3C document object model (DOM) |
|
|
380 | (1) |
|
|
381 | (10) |
|
|
391 | (4) |
PART FOUR THE MICROSOFT SCRIPTING MODEL |
|
395 | (54) |
|
Scripting Microsoft Office |
|
|
397 | (28) |
|
|
397 | (1) |
|
Macros and macro languages |
|
|
398 | (1) |
|
|
399 | (2) |
|
|
401 | (3) |
|
Programming the Word object model |
|
|
404 | (11) |
|
Modifying Word's built-in dialogs |
|
|
415 | (1) |
|
|
415 | (3) |
|
Automation: programming the Office suite |
|
|
418 | (4) |
|
|
422 | (1) |
|
|
423 | (2) |
|
The Microsoft Scripting Runtime Library |
|
|
425 | (15) |
|
Scripting hosts, scripting engines and object libraries |
|
|
425 | (1) |
|
The Scripting Runtime Library |
|
|
426 | (1) |
|
|
426 | (2) |
|
The File System Object Model |
|
|
428 | (2) |
|
Working with the FileSystem Object object |
|
|
430 | (2) |
|
|
432 | (1) |
|
The File and Folder objects |
|
|
433 | (2) |
|
Text I/O with the TextStream object |
|
|
435 | (5) |
|
The Windows Script Host and the Script Control |
|
|
440 | (9) |
|
What is the Windows Script Host? |
|
|
440 | (1) |
|
The Windows Script Host object model |
|
|
441 | (3) |
|
|
444 | (2) |
|
The future of the Windows Script Host |
|
|
446 | (1) |
|
|
446 | (3) |
PART FIVE AND FINALLY |
|
449 | (28) |
|
|
451 | (23) |
|
|
451 | (1) |
|
|
452 | (7) |
|
|
459 | (5) |
|
|
464 | (10) |
|
|
474 | (3) |
Appendix |
|
477 | (8) |
Index |
|
485 | (5) |
Scripting Program Index |
|
490 | |