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.
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.
Once you've installed the Xcode Tools, it's pretty easy to create a new, basic AppleScript Studio program. Here's how:
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.
Choose File → New Project (Shift--N).
Xcode presents a list of new-program templates, ranging from Tools (Unix programs) to Address Book plug-ins.
Select AppleScript Application and click Next.
You've just selected the simplest template for an AppleScript Studio program. If you wanted to write a ...