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

Okay, let’s turn our attention back to the development of this chapter’s project, the AppleScript Lottery Picker game. This game generates a random list of lottery numbers based on input provided by the player. This game leverages your newfound knowledge of how to interact with the Mac OS X file systems by providing the player with the option of printing (after saving) a listing of the lottery numbers generated by the game.

Designing the Game

The AppleScript Lottery Picker game will be created in 11 steps, as outlined here:

1.
Create a new AppleScript and save it with a name of Lottery Picker.
2.
Document the script and its purpose.
3.
Declare the game’s global variables.
4.
Develop the overall controlling ...

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