O'Reilly logo

AppleScript: The Missing Manual by Adam Goldstein

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making a Program

In this section, you'll create a simple program to speak text out loud. In doing so, you'll learn how to design a program's look in Interface Builder and how to write the associated AppleScript commands in Xcode. Once you're done, you'll have a fully functioning Mac OS X application, ready to email to your friends or post online.

Before you can do any of this, however, you have to install the Xcode Tools. Luckily, if you don't have them, you can get them for free. Page Section 14.5.1 has the details.

Note

If you're not sure whether you've installed the Xcode Tools already, double-click your hard drive in the Finder. If you have a Developer folder, you're good to go. Otherwise, you have to install the tools.

Creating a Project

Once you've installed the Xcode Tools, it's pretty easy to create a new, basic AppleScript Studio program. Here's how:

  1. Open your Developer Applications folder, and double-click Xcode.

    This program is where you'll write your AppleScript code (Section 14.5.2). Since Xcode is such an essential program, power users often keep a copy in their Dock for easy access.

  2. Choose File New Project (Shift--N).

    Xcode presents a list of new-program templates, ranging from Tools (Unix programs) to Address Book plug-ins.

  3. Select AppleScript Application and click Next.

    You've just selected the simplest template for an AppleScript Studio program. If you wanted to write a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required