In Chapters 3 through 6, you were introduced to the basics of AppleScript programming. This chapter is the first of four chapters dedicated to covering advanced programming topics. The primary focus of this chapter is on teaching you how to develop AppleScripts that can interact with and control files and folders. You will learn how to interact with the Mac file system and establish file references. You will also learn how to read from and write to text files. In addition, you will learn how to create your next AppleScript game, the AppleScript Lottery Picker game.
Specifically, you will learn how to:
Identify the location of files and folders
Open and close text files
Read data from text files
Write data ...