AppleScript_ The Definitive Guide - Matt Neuburg [4]
Explains how to drive applications with AppleScript, on the same or a different computer, including certain kinds of web services. Also mentions some useful scriptable applications that come with Mac OS X.
Chapter 24, Unscriptable Applications
Talks about how AppleScript can be used together with the system's Accessibility API to automate the interface of applications that are not directly scriptable.
Chapter 25, Unix
Talks about how AppleScript can call the Unix shell command line and how Unix scripting languages can call AppleScript.
Chapter 26, Triggering Scripts Automatically
Describes ways that an application or process can find and call your script automatically, including folder actions, CGI, and attachability.
Chapter 27, Writing Applications
Discusses ways to turn an AppleScript program into a standalone application, ranging from a simple applet (written with AppleScript alone) to a full-fledged application with a true user interface or an Automator action (written with AppleScript Studio). Also introduces the techniques whereby a developer can add scriptability to an Objective-C Cocoa application.
Part IV, Appendixes
Appendix A, The AppleScript Experience
A brief hands-on tutorial or walkthrough, illustrating what it's like to plan and implement a task using AppleScript in real life.
Appendix B, Apple Events Without AppleScript
Lists some alternatives to AppleScript for creating and sending Apple events.
Appendix C, Tools and Resources
A list of references and further readings.
Conventions Used in This Book
The following conventions are used in this book:
Italic
Used for file and folder names, URLs, and new terms when they are defined.
Constant width
Used for code examples and the names of variables, handlers, and commands.
Constant-width italic
Used for placeholders in code, where the programmer would supply the actual name of something.
Constant-width bold
Used in code examples, for user input from the command line; often seen in conjunction with %, which symbolizes the shell prompt.
-- code comment in italic
Used in code examples, for my comments to the reader about the code or its effect.
-- code comment in bold
Used in code examples, to represent the result (output) of executing the line.
vertical bar |
Used in syntax templates to indicate alternatives.
[square brackets]
Used in syntax templates to indicate that something is optional.
¬
Used to indicate a line of code that continues; these lines will be unbroken in your code but were too long to fit on the printed pages of this book.
Tip
This icon represents a tip relating to the nearby text.
Warning
This icon represents a warning relating to the nearby text.
How to Contact Us
The book-writing process is long and arduous, and the examples have been tested and retested. However, mistakes do creep in from time to time. If you find any errors in the text or code examples, please write to:
O'Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
800-998-9938 (in the United States or Canada)
707-829-0515 (international/local)
707-829-0104 (fax)
We have a web page for the book, where we list any additional information. You can access this page at:
http://www.oreilly.com/catalog/applescpttdg/
To comment or ask technical questions about this book, send email to:
bookquestions@oreilly.com
For more information about our books, conferences, software, Resource Centers, and the O'Reilly Network, see our web site at:
http://www.oreilly.com
The author maintains a web page with the source code for this book in downloadable form, along with a list of errata and supplementary comments:
http://www.tidbits.com/matt/
Safari® Enabled
When you see a Safari® Enabled icon on the cover of your favorite technology book, that means the book is available online through the O'Reilly Network Safari Bookshelf. Safari offers a solution that's better than e-books. It's a virtual library that lets you easily search thousands of top tech books, cut and paste code samples,