Basics of AppleScript

Print List

Script [6.2.1]:

set myList to {"MacBook Pro", "iPad", "iPhone"}
get myList

Explanation: The above statement will create a list named myList and it will contain the following items i.e. MacBook Pro, iPad and iPhone.

The command get is used to print the contents of list specified in the result tab.

Figure 6.2.1

Figure 6.2.1 Print List Using get Keyword