Basics of AppleScript

Declaring Lists

AppleScript is a scripting language and hence can perform limited tasks. But this makes it really simple to Script as the number of keywords in AppleScript are less in comparison to normal programming languages.

Script [6.1.1]:

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

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

Figure 6.1.1

Figure 6.1.1 Declaring a List