Chapter 1. Folders & Windows

When you first turn on a Mac running OS X 10.6, an Apple logo greets you, soon followed by an animated, rotating “Please wait” gear cursor—and then you’re in. No progress bar, no red tape.

What happens next depends on whether you’re the Mac’s sole proprietor or you have to share it with other people in an office, school, or household.

The desktop is the shimmering, three-dimensional Mac OS X landscape shown in Figure 1-2; technically, you’re in a program called the Finder. On a new Mac, it’s covered by a starry galaxy photo that belongs to Snow Leopard’s overall outer-space graphic theme. (If you upgraded from an earlier version of Mac OS X, you keep whatever desktop picture you had before. In fact, at first glance, you probably won’t spot anything different about Snow Leopard at all.)

If you’ve ever used a computer before, most of the objects on your screen are nothing more than updated versions of familiar elements. Here’s a quick tour.

This row of translucent, almost photographic icons is a launcher for the programs, files, folders, and disks you use often—and an indicator to let you know which programs are already open. In Snow Leopard, they appear to rest on a sheet of transparent smoked glass.

In principle, the Dock is very simple:

  • Programs go on the left side. Everything else goes on the right, including documents, folders, and disks. (Figure 1-2 shows the dividing line.)

  • You can add a new icon to the Dock by dragging it there. Rearrange Dock icons by dragging them. Remove a Dock icon by dragging it away from the Dock, and enjoy the animated puff of smoke that appears when you release the mouse button. (You can’t remove the icon of a program that’s currently open, however.)

  • Click something once to open it. When you click a program’s icon, a tiny, bright, micro-spotlight dot appears under its icon to let you know it’s open.

    When you click a folder’s icon, you get a pop-up arc of icons, or a grid or list of them, that indicates what’s inside. See Organizing and Removing Dock Icons for details.

  • Each Dock icon sprouts a pop-up menu. To see the menu, Control-click it or right-click it. A shortcut menu of useful commands pops right out.

  • Hold the mouse button down on a program’s Dock icon to see mini versions of all that program’s open windows. This feature, new in Snow Leopard, is an extension of the Exposé feature described on Exposé: Death to Window Clutter. (Click the window, or the Dock icon, to close Exposé.)

Because the Dock is such a critical component of Mac OS X, Apple has decked it out with enough customization controls to keep you busy experimenting for months. You can change its size, move it to the sides of your screen, hide it entirely, and so on. Chapter 4 contains complete instructions for using and understanding the Dock.

Every popular operating system saves space by concealing its most important commands in menus that drop down. Mac OS X’s menus are especially refined:

In designing Mac OS X, one of Apple’s goals was to address the window-proliferation problem. As you create more files, stash them in more folders, and launch more programs, it’s easy to wind up paralyzed before a screen awash with overlapping rectangles.

That’s the problem admirably addressed by Exposé and Spaces. They’re described in detail in Chapter 5.

But some handy clutter and navigation controls are built into the windows themselves, too. For example:

The Sidebar is the pane at the left side of every Finder window, unless you’ve hidden it (and by the way, it’s also at the left side of every Open dialog box and every full-sized Save dialog box).

The Sidebar has as many as four different sections, each preceded by a collapsible heading:

The beauty of this parking lot for containers is that it’s so easy to set up with your favorite places. For example:

Then again, why would you ever want to hide the Sidebar? It’s one of the handiest navigation aids since the invention of the steering wheel. For example:

The title bar (Figure 1-4) has several functions. First, when several windows are open, the darkened title bar, window name, mini-icon, and colored left-corner buttons tell you which window is active (in front); in background windows, these elements appear dimmed and colorless. Second, the title bar acts as a handle that lets you move the window around on the screen.

Of course, you can also move Mac OS X windows by dragging any “shiny gray” edge; see Figure 1-5.

After you’ve opened one folder that’s inside another, the title bar’s secret folder hierarchy menu is an efficient way to backtrack—to return to the enclosing window. Get in the habit of right-clicking (or Control-clicking, or ⌘-clicking) the name of the window to access the menu shown in Figure 1-6. (You can release the Control or ⌘ key immediately after clicking.)

By choosing the name of a folder from this menu, you open the corresponding window. When browsing the contents of the Users folder, for example, you can return to the main hard drive window by Control-clicking the folder name Users and then choosing Macintosh HD from the menu.

Once you’ve mastered dragging, you’re ready for these three terrific title bar tips:

As the tip of your cursor crosses the three buttons at the upper-left corner of a window, tiny symbols appear inside them: , , and . Ignore the gossip that these symbols were added to help color-blind people who can’t distinguish the colors red, yellow, and green. Color-blind people are perfectly capable of distinguishing the buttons by their positions, just as they do with traffic lights.

But for people who aren’t paying attention to button position, these cues appear to distinguish the buttons when all three are identical shades of gray, as they are when you use Graphite mode (Accounts). They also signal you when it’s time to click. For example, as described in the previous section, you can use these three buttons even when the window is not at the front. You know the buttons are ripe for the clicking when you see the little symbols appear under your cursor.

The most important window gadget is the Close button, the red, droplet-like button in the upper-left corner (Figure 1-7). Clicking it closes the window, which collapses back into the icon from which it came.

The universal keyboard equivalent of the Close button is ⌘-W (for window)—a keystroke well worth memorizing. If you get into the habit of dismissing windows with that deft flex of your left hand, you’ll find it far easier to close several windows in a row, because you won’t have to aim for successive Close buttons.

In many programs, something special happens if you’re pressing the Option key when using the Close button or its ⌘-W equivalent: You close all open windows. This trick is especially useful in the Finder, where a quest for a particular document may have left your screen plastered with open windows for which you have no further use. Option-clicking the Close button of any one window (or pressing Option-⌘-W) closes all of them.

On the other hand, the Option-key trick doesn’t close all windows in every program—only those in the current program. Option-closing a Pages document closes all Pages windows, but your Finder windows remain open.

Moreover, Option-closing works only in enlightened applications. (In this department, Microsoft is not yet enlightened.)

Click this yellow drop of gel to minimize any Mac window, sending it shrinking, with a genie-like animated effect, into the right end of the Dock, where it then appears as an icon. The window isn’t gone, and it hasn’t even closed. It’s just out of your way for the moment, as though you’ve set it on a shelf. To bring it back, click the newly created Dock icon; see Figure 1-7. Chapter 4 has more on the Dock.

Minimizing a window in this way is a great window-management tool. In the Finder, minimizing a window lets you see whatever icons were hiding behind it. In a Web browser, it lets you hide a window that has to remain open (because you’re waiting for some task to finish) so you can read something else in the meantime.

And now, some Minimize button micro-goodies:

Chapter 4 describes this fascinating desktop-window element in great detail.

In Mac OS X, double-clicking a folder in a window doesn’t leave you with two open windows. Instead, double-clicking a folder makes the original window disappear (Figure 1-9).

So what if you’ve now opened inner folder B, and you want to backtrack to outer folder A? In that case, just click the tiny button—the Back button—in the upper-left corner of the window (shown in Figure 1-9), or use one of these alternatives:

  • Choose Go→Back.

  • Press ⌘-[ (left bracket).

  • Press ⌘-→ (up arrow).

  • Choose Go→Enclosing Folder.

None of that helps you, however, if you want to move a file from one folder into another, or compare the contents of two windows. In that case, you probably want to see both windows open at the same time.

You can open a second window using any of these techniques:

  • Choose File→New Finder Window (⌘-N).

  • ⌘-double-click a disk or folder icon.

  • Double-click a folder or disk icon on your desktop.

Scroll bars appear automatically in any window that isn’t big enough to show all its contents. Without scroll bars in word processors, for example, you’d never be able to write a letter that’s taller than your screen. You can manipulate a scroll bar in three ways, as shown in Figure 1-10.

Ordinarily, when you click in the scroll bar track above or below the gelatinous handle, the window scrolls by one screenful. But another option awaits when you choose →System Preferences→Appearance and turn on “Scroll to here.” Now when you click in the scroll bar track, the Mac considers the entire scroll bar a proportional map of the document and jumps precisely to the spot you clicked. That is, if you click at the very bottom of the scroll bar track, you see the very last page.

It’s worth noting, however, that the true speed expert eschews scroll bars altogether. Your Page Up and Page Down keys let you scroll up and down, one screen at a time, without having to take your hands off the keyboard to grab the mouse. The Home and End keys, meanwhile, are generally useful for jumping directly to the top or bottom of your document (or Finder window). And if you’ve bought a mouse that has a scroll wheel on the top, you can use it to scroll windows, too, without pressing any keys at all.

You can view the files and folders in a desktop window in any of four ways: as icons; as a single, tidy list; in a series of neat columns; or in Cover Flow view, where you can flip through giant document icons like they’re CDs in a music-store bin. Figure 1-11 shows the four different views.

Every window remembers its view settings independently. You might prefer to look over your Applications folder in list view (because it’s crammed with files and folders) but view the Pictures folder in icon or Cover Flow view, where the larger icons serve as previews of the photos.

To switch a window from one view to another, just click one of the four corresponding icons in the window’s toolbar, as shown in Figure 1-11.

You can also switch views by choosing View→as Icons (or View→as Columns, or View→as List, or View→as Cover Flow), which can be handy if you’ve hidden the toolbar. Or, for less mousing and more hard-bodied efficiency, press ⌘-1 for icon view, ⌘-2 for list view, ⌘-3 for column view, or ⌘-4 for Cover Flow view.

The following pages cover each of these views in greater detail.

In icon view, every file, folder, and disk is represented by a small picture—an icon. This humble image, a visual representation of electronic bits and bytes, is the cornerstone of the entire Macintosh religion. (Maybe that’s why it’s called an icon.)

Mac OS X offers a number of useful icon-view options, all of which are worth exploring. Start by opening any icon view window, and then choose View→Show View Options (⌘-J).

This option is what makes icons display their contents, as shown in Figure 1-12 and 1-13. If you turn it off, then icons no longer look like miniature versions of their contents. Photos no longer look like tiny photos, PDF and Word documents no longer display their contents, and so on. Everything takes on identical, generic icons (one for all text documents, one for all JPEG photos, and so on).

You might prefer this arrangement when, for example, you want to be able to pick out all the PDF files in a window full of mixed document types. Thanks to the matching icons, it’s easy now.

Here’s a luxury that other operating systems can only dream about: You can fill the background of any icon view window on your Mac with a certain color—or even a photo.

Color-coordinating or “wallpapering” certain windows is more than just a gimmick. In fact, it can serve as a timesaving visual cue. Once you’ve gotten used to the fact that your main Documents folder has a sky-blue background, you can pick it out like a sharpshooter from a screen filled with open windows. Color-coded Finder windows are also especially easy to distinguish at a glance when you’ve minimized them to the Dock.

Once a window is open, choose View→View Options (⌘-J). The bottom of the resulting dialog box offers three choices, whose results are shown in Figure 1-15.

In general, you can drag icons anywhere in a window. For example, some people like to keep current project icons at the top of the window and move older stuff to the bottom.

If you’d like Mac OS X to impose a little discipline on you, however, it’s easy enough to request a visit from an electronic housekeeper who tidies up your icons by aligning them neatly to an invisible grid. You can even specify how tight or loose that grid is.

Mac OS X offers an enormous number of variations on the “snap icons to the underlying rows-and-columns grid” theme:

These same commands appear in the shortcut menu when you Control-click or right-click anywhere inside an icon-view window, which is handier if you have a huge monitor.

Note, by the way, that the grid alignment is only temporary. As soon as you drag icons around, or add more icons to the window, the newly moved icons wind up just as sloppily positioned as before you tidied up.

If you want the Mac to lock all icons to the closest spot on the grid whenever you move them, then choose View→Show View Options (⌘-J); from the “Arrange by” pop-up menu, choose Snap to Grid.

Even then, though, you’ll soon discover that none of these grid-snapping techniques moves icons into the most compact possible arrangement. If one or two icons have wandered off from the herd to a far corner of the window, then they’re merely nudged to the grid points closest to their current locations. They aren’t moved all the way back to the group of icons elsewhere in the window.

To solve that problem, use one of the sorting options described next.

If you’d rather have icons sorted and bunched together on the underlying grid—no strays allowed—then make a selection from the View menu:

Although it doesn’t occur to most Mac fans, you can also apply any of the commands described in this section—Clean Up, Arrange, Keep Arranged—to icons lying loose on your desktop. Even though they don’t seem to be in any window at all, you can specify small or large icons, automatic alphabetical arrangement, and so on. Just click the desktop before using the View menu or the View Options dialog box.

In windows that contain a lot of icons, the list view is a powerful weapon in the battle against chaos. It shows you a tidy table of your files’ names, dates, sizes, and so on. Very faint alternating blue and white background stripes help you read across the columns.

You get to decide how wide your columns should be, which of them should appear, and in what order (except that Name is always the first column). Here’s how to master these columns:

Most of the world’s list-view fans like their files listed alphabetically. It’s occasionally useful, however, to view the newest files first, largest first, or whatever.

When a desktop window displays its icons in a list view, a convenient new strip of column headings appears (Figure 1-17). These column headings aren’t just signposts; they’re buttons, too. Click Name for alphabetical order, Date Modified to view the newest first, Size to view the largest files at the top, and so on.

It’s especially important to note the tiny, dark-gray triangle that appears in the column you’ve most recently clicked. It shows you which way the list is being sorted.

When the triangle points upward, the oldest files, smallest files, or files beginning with numbers (or the letter A) appear at the top of the list, depending on which sorting criterion you have selected.

To reverse the sorting order, click the column heading a second time. Now the newest files, largest files, or files beginning with the letter Z appear at the top of the list. The tiny triangle turns upside-down.

One of the Mac’s most attractive features is the tiny triangle that appears to the left of a folder’s name in a list view. In its official documents, Apple calls these buttons disclosure triangles; internally, the programmers call them flippy triangles.

When you click one, the list view turns into an outline, showing the contents of the folder in an indented list, as shown in Figure 1-18. Click the triangle again to collapse the folder listing. You’re saved the trouble and clutter of opening a new window just to view the folder’s contents.

By selectively clicking flippy triangles, you can in effect peer inside two or more folders simultaneously, all within a single list view window. You can move files around by dragging them onto the tiny folder icons.

Choose View→Show View Options. In the dialog box that appears, you’re offered on/ off checkboxes for the different columns of information Mac OS X can show you, as illustrated in Figure 1-19.

The View Options for a list view include several other useful settings; choose View→ Show View Options, or press ⌘-J.

If you place your cursor carefully on the dividing line between two column headings, you’ll find that you can drag the divider line horizontally. Doing so makes the column to the left of your cursor wider or narrower.

What’s delightful about this activity is watching Mac OS X scramble to rewrite its information to fit the space you give it. For example, as you make the Date Modified (or Created) column narrower, “Tuesday, March 9, 2010, 2:22 PM” shrinks first to “Tue, Mar 9, 2010, 2:22 PM,” then to “3/9/10, 2:22 PM,” and finally to a terse “3/9/10.”

If you make a column too narrow, Mac OS X shortens the file names, dates, or whatever by removing text from the middle. An ellipsis (…) appears to show you where the missing text would have appeared. (Apple reasoned that truncating the ends of file names, as in some other operating systems, would hide useful information like the number at the end of “Letter to Marge 1,” “Letter to Marge 2,” and so on. It would also hide the three-letter extensions, such as Thesis .doc, that may appear on file names in Mac OS X.)

For example, suppose you’ve named a Word document “Ben Affleck—A Major Force for Humanization and Cure for Depression, Acne, and Migraine Headache.” (Yes, file names can really be that long.) If the Name column is too narrow, you might see only “Ben Affleck—A Major…Migraine Headache.”

The goal of column view is simple: to let you burrow down through nested folders without leaving a trail of messy, overlapping windows in your wake.

The solution is shown in Figure 1-21. It’s a list view that’s divided into several vertical panes. The first pane (not counting the Sidebar) shows whatever disk or folder you first opened.

When you click a disk or folder in this list (once), the second pane shows a list of everything in it. Each time you click a folder in one pane, the pane to its right shows what’s inside. The other panes slide to the left, sometimes out of view. (Use the horizontal scroll bar to bring them back.) You can keep clicking until you’re actually looking at the file icons inside the most deeply nested folder.

If you discover that your hunt for a particular file has taken you down a blind alley, it’s not a big deal to backtrack, since the trail of folders you’ve followed to get here is still sitting before you on the screen. As soon as you click a different folder in one of the earlier panes, the panes to its right suddenly change, so that you can burrow down a different rabbit hole.

The beauty of column view is, first of all, that it keeps your screen tidy. It effectively shows you several simultaneous folder levels but contains them within a single window. With a quick ⌘-W, you can close the entire window, panes and all. Second, column view provides an excellent sense of where you are. Because your trail is visible at all times, it’s much harder to get lost—wondering what folder you’re in and how you got there—than in any other window view.

Efficiency fans can operate this entire process by keyboard alone. For example:

Just as in icon and list view, you can choose View→Show View Options to open a dialog box—a Spartan one, in this case—offering additional control over your column views.

Cover Flow is a visual display that Apple stole from its own iTunes software, where Cover Flow simulates the flipping “pages” of a jukebox, or the albums in a record-store bin (Figure 1-23). There, you can flip through your music collection, marveling as the CD covers flip over in 3-D space while you browse.

The idea is the same in Mac OS X, except that now it’s not CD covers you’re flipping; it’s gigantic file and folder icons.

To fire up Cover Flow, open a window. Then click the Cover Flow button identified in Figure 1-23, choose View→as Cover Flow, or press ⌘-4.

Now the window splits. On the bottom: a traditional list view, complete with sortable columns, exactly as already described.

On the top: the gleaming, reflective, black Cover Flow display. Your primary interest here is the scroll bar. As you drag it left or right, you see your files and folders float by and flip in 3-D space. Fun for the whole family!

The effect is spectacular, sure. It’s probably not something you’d want to set up for every folder, though, because browsing is a pretty inefficient way to find something. But in folders containing photos or movies (that aren’t filled with hundreds of files), Cover Flow can be a handy and satisfying way to browse.

And now, notes on Cover Flow:

As the preceding several thousand pages make clear, there are lots of ways to view and manage the seething mass of files and folders on a typical hard drive. Some of them actually let you see what’s in a document without having to open it—the Preview column in column view, the giant icons in Cover Flow, and so on.

Quick Look takes this idea to another level. It lets you open and browse a document nearly at full size—without switching window views or opening any new programs. You highlight an icon (or several), and then do one of these things:

You exit Quick Look in any one of these same ways.

In any case, the Quick Look window now opens, showing a nearly full-size preview of the document (Figure 1-25). Rather nice, eh?

The idea here is that you can check out a document without having to wait for it to open in the traditional way—at full size. For example, you can read the fine text in a Word or PowerPoint document without actually having to open Word or PowerPoint, which saves you about 45 minutes.

You might wonder: How, exactly, is Quick Look able to display the contents of a document without opening it? Wouldn’t it have to somehow understand the internal file format of that document type?

Exactly. And that’s why Quick Look doesn’t recognize all documents. If you try to preview, for example, a Final Cut Pro video project, a sheet-music file, a .zip archive, or a database file, all you’ll see is a six-inch-tall version of its generic icon. You won’t see what’s inside.

Over time, people will write plug-ins for those nonrecognized programs. Already, plug-ins that let you see what’s inside folders and .zip files await at www.qlplugins.com. In the meantime, here’s what Quick Look recognizes right out of the box:

Here are some stunts that make Quick Look even more interesting:

Mac OS X is supposed to be all about graphics and other visual delights. No wonder, then, that it offers a built-in, full-screen slideshow feature.

It works like this: Highlight a bunch of icons, and then open Quick Look. The screen goes black, and the documents begin their slideshow. Each image appears on the screen for about 3 seconds before the next one appears. (Press the Esc key or ⌘-period to end the show.) It’s like a slideshow, except that it plays all documents it recognizes, not just graphics.

It’s a useful feature when you’ve just downloaded or imported a bunch of photos or Office documents and want a quick look through them. Use the control bar shown in Figure 1-26 to manage the playback.

If you’re the only person who uses your Mac, finishing up a work session is simple. You can either turn off the machine or simply let it go to sleep, in any of several ways.

It’s a good thing you’ve got a book about Mac OS X in your hands, because the only user manual you get with it is the Help menu. You get a Web browser—like program that reads a set of help files that reside in your System→Library folder.

You’re expected to find the topic you want in one of these three ways: