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.
The AppleScript Lottery Picker game will be created in 11 steps, as outlined here:
Create a new AppleScript and save it with a name of Lottery Picker.
Document the script and its purpose.
Declare the game’s global variables.
Develop the overall controlling ...