Team LiB
Previous Section Next Section

Chapter 3. Building a Script from Scratch

So far, you've been on a quick tour of all the AppleScript stuff that comes with Mac OS X. You've learned how to add the Script Menu to your menu bar, how to use Script Editor, and even how to tweak one of the Script Menu's scripts. Now, you'll finally break free from the limits of your built-in scripts and start creating your own AppleScripts from scratch.

When most people refer to "scripting," this is what they're talking about: writing a new script all by themselves. With Script Editor as your trusty tool, you can link commands in the order you prefer, making it possible to create totally customized scripts to deal with the tasks you perform every day.

Before you can write the next blockbuster AppleScript, though, you first need to learn the basics. That's what this chapter's for: teaching you how to create your first simple script from the ground up.

The example scripts from this chapter can be found on the AppleScript Examples CD (see Sidebar 2.1 for instructions).

    Team LiB
    Previous Section Next Section