O'Reilly logo

AppleScript® Programming for the Absolute Beginner by Jerry Lee Ford

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

Back to the AppleScript Shell Game

All right, it is time to turn your attention back to the development of this chapter’s game project, the AppleScript Shell game. The design of this game relies extensively on the use of custom handlers. In developing this AppleScript, you will gain additional experience in developing handlers that accept and process arguments and which also return a result back to the statements that call on them.

Designing the Game

The AppleScript Shell game is created by following 10 steps, as outlined here:

1.
Create a new AppleScript and save it with a name of Shell Game.
2.
Document the script and its purpose.
3.
Declare the game’s global variable.
4.
Initialize variable starting values.
5.
Develop the high-level programming ...

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