Scripting Additions Guide

vii
Figures, Tables, and Listings
Chapter 1
Introduction to Scripting Additions
1
Figure 1-1
A scripting addition icon 1
Chapter 2
Scripting Addition Commands
5
Figure 2-1
A Choose Application dialog box 14
Figure 2-2
A Choose File dialog box 16
Figure 2-3
A Choose Folder dialog box 18
Figure 2-4
A Display Dialog dialog box 23
Figure 2-5
Alert icons 26
Figure 2-6
A New File dialog box 38
Figure 2-7
The Script Editor’s Event Log window 61
Table 2-1
Scripting addition commands described in this guide 6
Listing 2-1
Reading a specific record from a text-based database file 72
Listing 2-2
Deleting a record from a text-based database file 74
Listing 2-3
Inserting a record in a database file 77
Listing 2-4
Opening a file for write access and creating one if the file
doesn’t exist 82
Chapter 3
Writing Scripting Additions
85
Listing 3-1
Resource type declaration for the
'osiz'
resource 89
Listing 3-2
Classes array for a scripting addition that returns a record 92
Listing 3-3
Play Sound scripting addition 94
Appendix
Scripting Additions at a Glance
105
Table A-1
Command syntax for standard AppleScript scripting
additions 106
Table A-2
Placeholders used in syntax descriptions 110