Language Guide
xiii
Figures and Tables
Chapter 1
AppleScript, Scripts, and Scriptable Applications
3
Figure 1-1 Changing text style with the mouse and with a script 4
Figure 1-2 A script that performs a repetitive action 6
Figure 1-3 A script that copies information from one application to another 8
Figure 1-4 Different ways to run a script 9
Chapter 2
Overview of AppleScript
13
Figure 2-1 How AppleScript works 15
Figure 2-2 How AppleScript gets the Scriptable Text Editor dictionary 20
Chapter 3
Values 33
Figure 3-1 Value class definition for lists 34
Figure 3-2 Coercions supported by AppleScript 69
Table 3-1 AppleScript value class identifiers 39
Chapter 4
Commands
71
Figure 4-1 Command definition for the Move command 77
Figure 4-2 The Scriptable Text Editor document “simple” 95
Table 4-1 Standard application commands defined in this chapter 85
Table 4-2 AppleScript commands defined in this chapter 86
Chapter 5
Objects and References
119
Figure 5-1 The Scriptable Text Editor’s object class definition for
paragraph objects 121
Figure 5-2 The Scriptable Text Editor document “simple” 137
Table 5-1 Reference forms 126
Table 5-2 Boolean expressions and tests in Filter references 142