true I will discuss all of these features—commands, operators, and variables—in a lot more detail in Part 2 of the book. How AppleScript Makes Decisions on What to Do and When to Do It The third key concept in AppleScript is that running scripts have the ability to decide what they should do and when they should do it. Roughly speaking, a script may face three kinds of questions when manipulating data:  Should I do this?

The English-like Syntax Some people love it. Some people hate it. Almost everyone will agree: it’s certainly different! Yes, I’m talking about AppleScript’s famously “English-like” appearance. What’s so special about it? Well, AppleScript’s word-based syntax makes it amazingly easy for an ordinary Mac user to look at a piece of AppleScript code and get a pretty clear idea of what that code will do when it is run…even if she doesn’t know any AppleScript herself. This makes AppleScript unusually quick to get started in, as the first step of learning any new language is figuring out how to read it.

Think of it as a tourist guide that briefly describes all the major landmarks you will visit on your impending trip. Although reading about what each place is like is no substitute for actually going there, having a rough idea of what to expect means you won’t spend the entire journey feeling like you have no idea of where you’re off to next or why. The first two sections of this chapter will help you to make sense of application scripting and the AppleScript language. ” Each key concept is introduced in turn, with a brief explanation of what it is, what part it plays in the grand scheme of things, and how it relates to the other key concepts.

Download PDF sample

Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Third Edition (Learn Series) by Hanaan Rosenthal, Hamish Sanderson


by Charles
4.2

Rated 4.02 of 5 – based on 9 votes