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

Chapter 7. Accessing Files and Folders

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 ...

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