In this chapter, you’ll create a simple AppleScript Studio application that converts a dollar amount to an amount in another currency. The Currency Converter tutorial describes a number of tasks that are common to most AppleScript Studio applications, including:
creating a project with Xcode
building an interface with Interface Builder, including
inserting and initializing user interface objects
adjusting the interface to comply with the Aqua guidelines
connecting the interface to an event handler in a script
using common shortcuts
writing an event handler
building and running the application
You can also find a plain Cocoa version of the Currency Converter Tutorial in the Objective-C Language Documentation area of the Cocoa Documentation. That tutorial provides some information you won’t need in this chapter, such as a discussion of object-oriented design, steps for creating custom object classes, and steps for hooking up user actions to class methods. In the AppleScript Studio version of Currency Converter, you’ll handle user actions in a scripting event handler, rather than with custom classes and methods. That makes your task quite a bit simpler. However, you may want to consult the Cocoa tutorial before designing more complex AppleScript Studio applications, such as the one described in “Mail Search Tutorial: Design the Application.”
To build the Currency Converter application, you’ll perform these steps:
This chapter assumes you have completed the Hello World tutorial in “Creating a Hello World Application” and read “AppleScript Studio Components” as well.
After completing the Currency Converter tutorial, see “Where To Go From Here” for suggestions on how to learn more about AppleScript Studio.
Last updated: 2006-04-04