Lesson 18. Working with Lists and Records



What’s Next?

It is common in AppleScript to organize information of all kinds into lists or records. You’ve seen them several times already. For example, in Chapter 6, Information Tools, you used the list disks and list folders commands in the Standard Additions scripting addition, and you saw the file information record returned by the info for command, also in Standard Additions.

This chapter gives you an overview of operations you can perform with lists and records and demonstrates how they are used in practice.


Lists are the real workhorses for information management in AppleScript. When you ask the Finder for the name of every item in the current user’s Documents folder, ...

Get Apple Pro Training Series: AppleScript 1-2-3 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.