Beginning AppleScript

What is this book about? Geared toward programmers with no prior development knowledge, Beginning AppleScript serves as a comprehensive guide to using AppleScript on the Mac OS X platform. This title introduces the reader to AppleScript, and then illustrates how to efficiently start writing scripts...

Descripción completa

Detalles Bibliográficos
Autor principal: Kochan, Stephen G. (-)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Indianapolis, Ind. : Wiley Pub c2005.
Edición:1st edition
Colección:Wrox beginning guides
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627227306719
Tabla de Contenidos:
  • Beginning AppleScript; About the Author; Contents; Acknowledgments; Introduction; Who This Book Is For; How This Book Is Structured; What You Need to Use This Book; Conventions; Source Code; Errata; p2p. wrox. com; Chapter 1: Writing Your First AppleScript Program; Starting with Script Editor; Compiling and Running Your Program; Extending Your First Program; An AppleScript Command to Display a Dialog; Understanding the Buttons Parameter in the display dialog Command; Multiple AppleScript Commands; Adding Comments to Your Programs; Summary; Exercises
  • Chapter 2: Variables, Classes, and ExpressionsWorking with Variables; More on Commands and Statements; Basic Data Type Classes; Basic Data Type Conversions; Arithmetic Operators and Expressions; The Date Class; Summary; Exercises; Chapter 3: Making Decisions; The if Statement; AppleScript's Relational Operators; The if-else Statement; Nested if Statements; The if-else if Statement; Compound Relational Tests; Creating Your First Application; Catching Errors with the try Statement; Summary; Exercises; Chapter 4: Program Looping; The repeat... times Statement; The repeat with Statement
  • The repeat while StatementUsing Flags; The repeat until Statement; The repeat with Statement for Lists; Setting Up an Infinite Loop with repeat; Summary; Exercises; Chapter 5: Working with Strings; Strings, Text, and Unicode Text; Review of Concatenation; Getting the Size of a String; Using Special String Characters; The considering and ignoring Statements; Words, Characters, and Paragraphs; Locating Strings inside Strings; More on the Count Command; Enhancing the Alarm Clock Program; Summary; Exercises; Chapter 6: Working with Lists and Records; Working with Lists; Working with Records
  • SummaryExercises; Chapter 7: Working with Files; Path Names: Traditional Mac and POSIX-style; What's in a Name?; The file Class; File Name Aliases; Reading and Writing Files; Enumerating Disks and Folders; Summary; Exercises; Chapter 8: Handlers; Writing a Handler; Passing Parameters to Handlers; Returning Handler Results; Argument Types; Local Variables; Call by Value; Recursive Handlers; Local/Global Variables and Variable Scope; Saving and Loading Handlers; Labeled Parameters; Specifying Patterns for Parameters; Summary; Exercises; Chapter 9: Error Handling; Beeps and Dialogs
  • The try... on error StatementThe error Command; Summary; Exercises; Chapter 10: Working with Applications; Talking to Other Applications: The tell Statement; More on Working with the Finder; More on Working with Applications; Applets and Droplets; Summary; Exercises; Chapter 11: Scripting iLife Applications; Scripting iTunes; Scripting iPhoto; Scripting iDVD; Summary; Exercises; Chapter 12: Script Objects; Defining a Script Object; Script Properties; Your Program Is a Script Object; Script Objects Containing Handlers; Handlers Containing Script Objects
  • Storing, Loading, and Running Scripts from Files