Workshop #1: Introduction to AppleScript

About This Workshop

This session explores further into the world of AppleScript, starting about where Workshop #1 (either version) left off. The primary focus of this workshop is on building more powerful scripts by using subroutines, script applications, and the interactions among them. We'll revisit and build upon our survey and file-sorting example scripts from the beginner version of Workshop #1; if you took the advanced version, there will be an opportunity for you to familiarize yourself with them.

To finish, we'll take a look at how to read an AppleScript dictionary--an important part of learning how to write scripts that control other applications.

Some of the examples in this session make use of the choose from list command that was introduced in Mac OS 8.5. If you're not running that or a newer system version, you won't be able to run those examples (unless you rewrite them without the command, which is possible).

Conventions

In some sections in this workshop, script examples will build upon one another to create ever more complex scripts. In such cases, script text that hasn't been changed since the last example will be dimmed so that the new text stands out.

We'll be using these AppleScript Formatting settings so that script text is easy to read:

Next: Subroutines


Copyright 1999 MacWarriors, ACM@UIUC