AppleScript, built into the Macintosh OS, is used by hndreds of companies and countless individuals to automate tasks, control applications, automate Web sites, and more. It's a scripting language that uses natural, English-like syntax -- much easier to code than most scripting languages.
Sams Teach Yourself AppleScript in 24 Hours offers a clearly written, well organized introduction to AppleScript. The book starts with running existing scripts, then teaches the reader to write simple scripts to create shortcuts and increase productivity on the Mac OS, then moves on to working with popular Macintosh applications with scripts.
Jesse Feiler is the author of a number of Mac OS X books including Mac OS X Jaguar: The Complete Reference; Mac OS X Developer's Guide; and Making Movies, Photos, Music, and DVDs on Your Mac. He is also the author of Building WebObjects 5 Applications, as well as many books on the Web-based enterprise (such as Database-Driven Web Sites and Managing the Web-Based Enterprise), the Y2K problem, home offices, databases, and FileMaker. He has written numerous white papers for Cutter Consortium. His books on OpenDoc, Cyberdog, Apple Guide, and Rhapsody are now collector's items.
He has worked as a developer and manager for companies such as the Federal Reserve Bank of New York (monetary policy and bank supervision), Prodigy (early Web browser), Apple (information systems), New York State Department of Health (rabies and lead poisoning), The Johnson Company (office management), and Young & Rubicam (media planning and new product development).
His interests in new forms of technical training have led him to MediaSchool (http://www.mediaschool.com), for which he has authored several Mac OS X courses available over the Internet, as well as to Geek Cruises' Mac Mania cruise to Alaska. He is also the first author of a technical book to be published in both a paper version and as an e-book.
His Web site, http://www.philmontmill.com, provides additional information as do his blog pages at http://www.pickwickpixels.com.
Active in the community, he is past president of the Mid-Hudson Library System, chair of the Philmont Comprehensive Plan Board, founder of the Philmont Main Street Committee, and treasurer of the HB Playwrights Foundation. He is a regular on WAMC's Roundtable program.
He lives 100 miles north of New York City in the village of Philmont with a rescued greyhound and a cat. His research into Apple's iLife application has earned him the sobriquet "The Digital Scourge of Philmont."
(NOTE: Each chapter concludes with a Summary, Q&A, and Workshop.
Who Should Read This Book. How This Book Is Organized. Conventions Used in This Book.
I. GETTING STARTED WITH APPLESCRIPT. Hour 1. Introducing AppleScript.
AppleScript Success Stories. Scripting Versus Point-and-Click. What Makes AppleScript Special: Syntactical Scripting. How AppleScript Works: Overview. AppleScript Syntax. AppleScript Syntax for Programming.Hour 2. Using AppleScript.
Script Files. Applets. Droplets. Toolbar Scripts. Script Menu. Scripting Additions. Where to Get Scripts.Hour 3. Running the Scripts You Already Have.
Basics. Finder Scripts. Info Scripts. Web Services. Mail Scripts. Navigation Scripts. Script Editor Scripts. Folder Action Scripts. ColorSync and FontSync Scripts.Hour 4. Getting New Scripts from Apple and Running Them.
The iPhoto Collection. The iDVD Collection. The iTunes Collection. The QuickTime Collection. The Toolbar Scripts.Hour 5. Third-party Scripts and Applications That Simplify Your Life.
Sites for Scripts. Utility Scripts.Hour 6. Looking Behind the Scenes: How These Scripts Work.
Blocks. Subroutines. Handlers. Recursive Processing.Hour 7. Basic Programming Concepts.
Units of Control and Definition. Conditional Statements. Repetition. Try Blocks.
II. WRITING SCRIPTS WITH SCRIPT EDITOR. Hour 8. Introducing Script Editor.
Finding Your Way Around Script Editor. Creating a Script. Checking Syntax. Working with Dictionaries. Looking at the Result. Looking at the Event Log.Hour 9. Basic AppleScript Syntax.
Tell Blocks. Commands. Variables. Expressions. Control Statements. Optional Words. Script Structure.Hour 10. Scripting the Finder.
References. Inheritance. Standard Suite: Terms That Most Applications Support. Finder Basics. Finder Items. Container and Folders Suite. Files Suite. Window Classes Suite. Legacy Suite.Hour 11. Scripting Mac OS X Applications from Apple.
Reading a Dictionary. iCal. Help Viewer. Mail. Address Book. TextEdit. DVD Player. Internet Connect. Print Center. Disk Copy. Image Capture Scripting. Terminal.Hour 12. Scripting Mac OS X Applications from Third Parties.
Scripting America Online. Scripting AppleWorks. Scripting FileMaker. Scripting Microsoft Office. Scripting Internet Explorer. Scripting Photoshop. Scripting Retrospect.Hour 13. Interacting with Users.
Telling the User Something. Asking the User Something. Other Ways of Communicating with Users. Aqua Human Interface Guidelines.
III. WORKING WITH APPLESCRIPT STUDIO. Hour 14. Introducing AppleScript Studio.
Getting AppleScript Studio. What Is AppleScript Studio? Getting Started with Project Builder. Looking at Interface Builder.Hour 15. Building a Graphical AppleScript Studio Application.
Writing a Simple AppleScript Studio Application. A (Very) Little Programming Background. Using Menus.Hour 16. Writing Code for AppleScript Studio.
Working with Tab Views. Using Pop-up Menus and Combination (Combo) Boxes. Finding Out About Events. Using Sliders. Using the Color Well and Image Views. Using Progress Indicators. Using Formatters.Hour 17. Planning and Debugging AppleScript Studio Applications.
Project Builder Preferences. Project Builder Targets. Project Builder Styles. Debugging Overview. Debugging with Script Editor. Debugging with Project Builder. Debugging with Project Builders Debugger.Hour 18. Adding Help to AppleScript Studio.
Eliminating the Need for Help with Application Design. Catching Errors. Providing Documentation. Providing Help Tags. Providing Button-driven Help. Interacting with Help Viewer.Hour 19. Using Documents and Data Sources with AppleScript Studio.
Working with Table and Outline Views. Working with Data Sources. Exploring the AppleScript Document Template. Working with Documents: High-level Approach. Working with Files: Low-level Approach.
IV. ADVANCED SCRIPTING. Hour 20. Advanced AppleScript Syntax.
Script Objects. GUI Scripting.Hour 21. Creating AppleScripts to Control Multiple Applications.
Basic Script Design. Extracting Data from Address Book and Placing It in Text Edit. Extracting Data from FileMaker and Placing It in Text Edit. Extracting Data from Address Book and Placing It in InDesign. Extracting Data from FileMaker and Placing It in InDesign. Creating Dynamic Pages with InDesign.Hour 22. Using AppleScript Across a Network.
Mounting Remote Disks. How AppleScript Works Across a Network. What You Need to Do on the Client Mac. What You Need to Do on the Server Mac. Using AppleScript to Process CGI Requests. Using Web Services. Using Web Services with Script Editor. Using Web Services with AppleScript Studio.Hour 23. Beyond AppleScript: Using Services.
A Services Overview. How Services Work. Enabling Services with AppleScript Studio. Why Use Services with AppleScript Studio? Services from Script Editor.Hour 24. Beyond AppleScript: Shell Scripts, Perl, and Other Scripting Languages.
Using Terminal. Running AppleScript from Terminal. Running AppleScript As Commands from Applications. Automatically Running Scripts. Other Scripting Languages.
V. APPENDIXES. Appendix A. Constants and Predefined Variables. Appendix B. Operators.
Arithmetic Operators. Boolean Operators. Containment Operators. Equality Operators. Comparison Operators.Appendix C. Third-party Script Editors.
Smile. Script Debugger. PreFab UI Browser.Glossary. Index.