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

Project Preview: The AppleScript Lottery Picker Game

This chapter’s game project is the AppleScript Lottery Picker game. When executed, this game assists the player in generating a list of randomly selected lottery numbers. To play, the player must provide three pieces of information. First, the player must identify the range of numbers from which the game must choose. Second, the player must specify how many numbers must be selected to complete a ticket, and finally, the player must tell the game how many tickets she plans on purchasing. With this information in hand, the game will generate a list of lottery numbers. The game will even offer to save them in a text file and print them out if the player wants.

When first started, the AppleScript ...

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