Chapter 6. Working with Lists and Records

AppleScript gives you the capability to collectively store and manipulate groups of data. This chapter covers the two data structures you have available to work with: lists and records. You know something about lists from using the display dialog command in earlier chapters. As you also learned early in the book, the buttons parameter takes a list of up to three labels that specify the names of your dialog buttons. You also saw how getting a range of elements—including getting every element—from a string produces a list.

You know something about records from the display dialog command. This command returns its result in the form of a record. You saw how to get the text entered by the user (as well as the button the user clicked) from this record.

This chapter covers lists and records in detail.

Get Beginning AppleScript® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.