Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Lesson 6. Information Tools > Get Information About Folders

Get Information About Folders

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial