Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The list folder command is also considered a legacy command in Leopard. It has been the usual way to obtain a list of the contents of a folder in previous versions of Mac OS X. It still works in Leopard, but there is now a preferred way to do it. Again, update your existing scripts to use the new technique recommended for Leopard, described later in this section. As with the list disks command, the new technique using System Events is much more flexible because it doesn’t limit you to a list of names.
The list folder command provides a simple way to get the names of all items in a folder. To use it, follow the command with an alias reference to the folder whose contents are to be listed, as shown in Script 6.6.