Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X

Front Cover

AppleScript is an English-like, easy-to-understand scripting language built into every Mac. AppleScript can automate hundreds of AppleScript-able applications, performing tasks both large and small, complex and simple.

Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Third Edition has been completely updated for Mac OS X Snow Leopard. It’s all here, with an emphasis on practical information that will help you solve any automation problem—from the most mundane repetitive tasks to highly integrated workflows of complex systems.

  • Friendly enough for beginners, detailed enough for advanced AppleScripters
  • Includes major contributions from expert AppleScripters: Emmanuel Levy, Harald Monihart, Ian Piper, Shane Stanley, Barry Wainwright, Craig Williams, and foreword by AppleScript inventor, William Cook
 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

Part I Welcome to AppleScript
3
Chapter 1 Introducing AppleScript
4
Chapter 2 AppleScript in Principle
15
Chapter 3 AppleScript in Practice
33
Part II Understanding AppleScript
51
Chapter 4 Writing Scripts in AppleScript Editor
53
Chapter 5 Understanding How Application Scripting Works
77
Chapter 6 Learning to Work with AppleScript Objects
143
Chapter 17 Working with Files
471
Chapter 18 Organizing Your Code with Handlers
505
Chapter 19 Organizing Your Code with Script Objects
541
Part III Putting AppleScript to Work
585
Chapter 20 Scripting the File System
587
Chapter 21 Scripting Apple Applications
623
Chapter 22 Extending AppleScript with Scripting Additions
675
Chapter 23 AppleScript Amenities
711

Chapter 7 Working with Text
163
Chapter 8 Working with Numbers
215
Chapter 9 Working with Dates
241
Chapter 10 Working with Lists and Records
267
Chapter 11 Storing Objects in Variables
293
Chapter 12 More on Commands
319
Chapter 13 More on Operators and Coercions
369
Chapter 14 Making Decisions Using Conditionals and Loops
389
Chapter 15 Making Decisions When Dealing with Errors
413
Chapter 16 Interacting with the User
437
Chapter 24 Scripting iWork and Office
743
Chapter 25 Scripting Data and Databases
793
Chapter 26 Scripting Adobe InDesign
817
Chapter 27 Interacting with the Unix Command Line
863
The AppleScript Integrated Production Environment
897
Chapter 29 Tips and Techniques for Improving Your Scripts
927
Chapter 30 Creating Cocoa Applications with AppleScriptObjC
969
Index
1019
Copyright

Other editions - View all

Common terms and phrases

About the author (2010)

Hamish Sanderson is a ten-year veteran of AppleScript and professional automation developer living and working in the U.K. Over the years, he has contributed a range of useful libraries and utilities to the AppleScript community and pops up with some regularity on the various AppleScript mailing lists. He is also the author of the highly regarded Appscript library, which brings AppleScript-style application scripting support to the Python, Ruby, and Objective-C languages on Mac OS X.

Bibliographic information