About the Author . xxix About the Technical Reviewer . xxx Acknowledgments xxxi Introduction . xxxii PART 1 ■ ■ ■ Read Me First ■CHAPTER 1 Introducing AppleScript . 3 PART 2 ■ ■ ■ How to AppleScript ■CHAPTER 2 Scripting—From the Ground Up 13 ■CHAPTER 3 Introducing Values . 43 ■CHAPTER 4 Doing the Math: All About Numbers . 93 ■CHAPTER 5 Picking Up Dates . 113 ■CHAPTER 6 Working with Lists and Records . 147 ■CHAPTER 7 Giving Commands 173 ■CHAPTER 8 Working with Variables . 201 ■CHAPTER 9 Introducing Operations and Coercion 225 ■CHAPTER 10 Teaching Your Script to Make Decisions 257 ■CHAPTER 11 The Assembly Line: Creating Repeat Loops . 273 ■CHAPTER 12 Interacting with the User 291 ■CHAPTER 13 Advanced User Interaction 333 ■CHAPTER 14 Working with Files . 377 ■CHAPTER 15 Manipulating the File System . 415 ■CHAPTER 16 Working with the Clipboard . 445 ■CHAPTER 17 Using Errors to Your Advantage 451 ■CHAPTER 18 Defining and Calling Subroutines 469 ■CHAPTER 19 Using Script Objects 495 PART 3 ■ ■ ■ The Wild World of AppleScript ■CHAPTER 20 Using AppleScript Amenities in Mac OS X 517 ■CHAPTER 21 Extending AppleScript with Scripting Additions . 535 ■CHAPTER 22 Understanding the Fundamentals of Automating Applications . 559 ■CHAPTER 23 Debugging Scripts 573 ■CHAPTER 24 Saving and Running Scripts . 583 ■CHAPTER 25 Implementing Healthy Scriptwriting Practices 593 ■CHAPTER 26 Scripting Apple Apps . 611 ■CHAPTER 27 Scripting Data and Databases . 635 ■CHAPTER 28 Using Smile: The AppleScript Integrated Production Environment 661 ■CHAPTER 29 Automating Unix Applications . 689 ■CHAPTER 30 Scheduling Scripts . 715 ■CHAPTER 31 Controlling Remote Applications . 719 ■CHAPTER 32 Entering the Business of Automation 727 ■INDEX . 731