Creating an Array: Difference between revisions

Content added Content deleted
(List with multiple type of objects)
(Lists with other lists)
Line 36: Line 36:
==[[AppleScript]]==
==[[AppleScript]]==
[[Category:AppleScript]]
[[Category:AppleScript]]

AppleScript supports "arrays" as "lists," and they are not limited by a single type.
AppleScript arrays are called lists:
set empty to {}
set empty to {}
set ints to {1, 2, 3}
set ints to {1, 2, 3}

set any to {1, "foo", 2.57}
Lists can contain any objects including other lists:
set any to {1, "foo", 2.57, missing value, ints}


==[[BASIC]]==
==[[BASIC]]==