Learn Mac Automation with Ruby Scripting teaches you an easier way to automate all of the AppleScript-able applications in Mac OS X one that doesn't resort to AppleScript. This book shows you how to translate AppleScript code into Ruby, gets you started taking advantage of the many features of Ruby that AppleScript lacks, and shows Ruby users how to leverage all the power of Apple Events with Ruby and the rbappkscript extension. Ruby has a number of advantages over AppleScript, but foremost among them is its increasing popularity across platforms as a powerful, concise, and logically consistent language. Apple includes Ruby with the developer downloads for Mac OS X, and there's a natural affinity among Ruby developers for Macs. And while AppleScript maintains a core base of users, many developers prefer to avoid it. This title serves a dual audience of Ruby users who want to automate their use of Mac OS X and AppleScript users looking for an easier way to automate and create more platform-neutral automation scripts.
* Serves as a complete guide to Mac system and application automation with Ruby * Introduces "just enough" Ruby for scripters of any skill level * Covers Apple Events and Mac OS X "scriptability" without the need for a detailed technology lesson
Auflage
Sprache
Verlagsort
Zielgruppe
Für Beruf und Forschung
Popular/general
Maße
Höhe: 235 mm
Breite: 178 mm
ISBN-13
978-1-4302-2493-8 (9781430224938)
Copyright in bibliographic data is held by Nielsen Book Services Limited or its licensors: all rights reserved.
Schweitzer Klassifikation
I'm Matt Neuburg! Famous for books that teach computer languages, online documentation, etc. I wrote the most rigorous book about AppleScript. I've taught at the AppleScript Pro Sessions. Now I've switched from using AppleScript to Ruby for just about all my automation needs. Follow me on my journey! The quickest way to get up to speed using Ruby instead of AppleScript is to have the help of a good teacher who's gone through the process. That's me.
1. Getting Started.- 2. Just Enough Ruby.- 3. Apple Events.- 4. The Application Object.- 5. Properties and Elements.- 6. Commands.- 7. Datatypes.- 8. Dictionaries.- 9. Scripting Additions.- 10. Examples.