Book description
Mac users everywhere--even those who know nothing about programming--are discovering the value of the latest version of AppleScript, Apple's vastly improved scripting language for Mac OS X Tiger. And with this new edition of the top-selling AppleScript: The Definitive Guide, anyone, regardless of your level of experience, can learn to use AppleScript to make your Mac time more efficient and more enjoyable by automating repetitive tasks, customizing applications, and even controlling complex workflows.
Fully revised and updated--and with more and better examples than ever--AppleScript: The Definitive Guide, 2nd Edition explores AppleScript 1.10 from the ground up. You will learn how AppleScript works and how to use it in a variety of contexts: in everyday scripts to process automation, in CGI scripts for developing applications in Cocoa, or in combination with other scripting languages like Perl and Ruby.
AppleScript has shipped with every Mac since System 7 in 1991, and its ease of use and English-friendly dialect are highly appealing to most Mac fans. Novices, developers, and everyone in between who wants to know how, where, and why to use AppleScript will find AppleScript: The Definitive Guide, 2nd Edition to be the most complete source on the subject available. It's as perfect for beginners who want to write their first script as it is for experienced users who need a definitive reference close at hand.
AppleScript: The Definitive Guide, 2nd Edition begins with a relevant and useful AppleScript overview and then gets quickly to the language itself; when you have a good handle on that, you get to see AppleScript in action, and learn how to put it into action for you. An entirely new chapter shows developers how to make your Mac applications scriptable, and how to give them that Mac OS X look and feel with AppleScript Studio. Thorough appendixes deliver additional tools and resources you won't find anywhere else. Reviewed and approved by Apple, this indispensable guide carries the ADC (Apple Developer Connection) logo.
Publisher resources
Table of contents
-
AppleScript: The Definitive Guide, 2nd Edition
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- Preface
-
I. AppleScript Overview
- 1. Why to Use AppleScript
- 2. Where to Use AppleScript
- 3. Basic Concepts
-
II. The AppleScript Language
- 4. Introducing the Language
- 5. Syntactic Ground of Being
- 6. A Map of the World
- 7. Variables
- 8. Script Objects
- 9. Handlers
- 10. Scope
- 11. Objects
- 12. References
- 13. Datatypes
- 14. Coercions
- 15. Operators
- 16. Global Properties
-
17. Constants
- true , false
- yes, no, ask
- missing value
- null
- plain, bold, italic, outline, shadow, underline, superscript, subscript, strikethrough, small caps, all caps, all lowercase, condensed, expanded, hidden
- case, diacriticals, white space, hyphens, expansion, punctuation, numeric strings
- application responses
- current application
- Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
- January, February, March, April, May, June, July, August, September, October, November, December
- 18. Commands
- 19. Control
-
III. AppleScript In Action
-
20. Dictionaries
- 20.1. Resolution of Terminology
- 20.2. Terminology Clash
- 20.3. Nonsensical Apple Events
- 20.4. Raw Four-Letter Codes
- 20.5. Multiple-Word Terms
- 20.6. What's in a Dictionary
- 20.7. The 'aeut ' Resource
-
20.8. Inadequacies of the Dictionary
- 20.8.1. Defects in the Object Model
- 20.8.2. Defective Element Specifiers
- 20.8.3. Properties with Eponymous Classes
- 20.8.4. Clashes with AppleScript
- 20.8.5. Wrong Value Types
- 20.8.6. Wrong Parameter Details
- 20.8.7. Make
- 20.8.8. Selection
- 20.8.9. Idioms for Common Tasks
- 20.8.10. Events and Classes
- 20.8.11. Coercions
- 20.8.12. Bad Grammar
- 20.8.13. Multiple Listings
- 20.8.14. Busted Scriptability
- 20.8.15. Bad Comments
-
21. Scripting Additions
- 21.1. Pros and Cons of Scripting Additions
- 21.2. Classic Scripting Additions
- 21.3. Loading Scripting Additions
- 21.4. Standard Scripting Addition Commands
- 22. Speed
- 23. Scriptable Applications
- 24. Unscriptable Applications
- 25. Unix
- 26. Triggering Scripts Automatically
- 27. Writing Applications
-
20. Dictionaries
- IV. Appendixes
- About the Author
- Colophon
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
Product information
- Title: AppleScript: The Definitive Guide, 2nd Edition
- Author(s):
- Release date: January 2006
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449379155
You might also like
book
AppleScript: The Definitive Guide
If you want to know all about AppleScript--the how, where, and why of using it--dig into …
book
Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Third Edition
AppleScript is an English-like, easy-to-understand scripting language built into every Mac. AppleScript can automate hundreds of …
book
AppleScript in a Nutshell
AppleScript in a Nutshell is the first complete reference to AppleScript, the popular programming language that …
book
Mastering macOS Programming
Take your macOS Sierra to the next level using the latest tools, designs, and best coding …