O'Reilly logo

Apple Pro Training Series: AppleScript 1-2-3 by Bill Cheeseman, Sal Soghoian

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

Lesson 18. Working with Lists and Records

Lists

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

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

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