Language Guide
CHAPTER 2
Overview of AppleScript
Statements 15
Figure 2-1 How AppleScript works
Script Editor
Writes, records, and runs scripts
AppleScript extension
Application
• Responds to Apple events by performing actions
• Sends Apple events to AppleScript extension
1
4
3
2
Apple events
(results)
Apple events
(requests for action)
• Interprets script statements and
sends corresponding Apple events
• Interprets Apple events and sends
results back to the Script Editor
AppleScript
statements
(results)