This chapter is from the book
Navigation Scripts
These scripts open common foldersHome, Applications, Favorites, and Documents. The Open Special folder lets you choose from the various folders such as Movies and Pictures that are created automatically in Mac OS X. This script builds a list of folders, and the code at its beginning is an interesting example of how to build an array. (There's more on arrays in Hour 6, "Looking Behind the Scenes: How These Scripts Work.")