Beginning AppleScript
Chapter One
Writing Your First
AppleScript Program
There's no point in wasting time. You are reading this book because you want to learn how to
write programs in AppleScript. So instead of wading through theory and terminology, I want you
to begin by typing an AppleScript program, running it, and looking at the results. I introduce terminology
as it is necessary along the way. If you begin this way, you'll have more fun and you
won't get overwhelmed.
Starting with Script Editor
Your Mac OS X system comes with some preinstalled tools that you'll be using in this book. One of
the most useful ones (as far as AppleScript programming goes) is an application called Script
Editor. This application allows you to enter, compile, debug, and run your AppleScript programs
in an interactive environment. It is a simple and effective tool.
The Script Editor application is stored in your Applications folder inside a subfolder called
AppleScript. Its icon looks like the one shown in Figure 1-1.
Locate the Script Editor application and double-click it to start it. You should get a window on your screen
that looks similar to the one shown in Figu ... read full excerpt from Beginning AppleScript ebook