Chapter 2. Organizing Your Stuff

For the first 20 years of the Mac’s existence, you began your workday by double-clicking the Macintosh HD icon in the upper-right corner of the screen. That’s where you kept your files.

These days, though, you’d be disappointed if you did that. All you’ll find in the Macintosh HD window is a set of folders called Applications, Library, Users, and so on—folders you didn’t put there.

Most of these folders aren’t very useful to you, the Mac’s human companion. They’re there for Mac OS X’s own use—which is why, in Snow Leopard, the Macintosh HD icon doesn’t even appear on the screen. (At least not at first; you can choose Find-er→Preferences and turn the “Hard disks” checkbox back on, if you really want to.) Think of your main hard drive window as storage for the operating system itself, which you’ll access only for occasional administrative purposes.

So where is your nest of files, folders, and so on? All of it, everything of yours on this computer, lives in the Home folder. That’s a folder bearing your name (or whatever name you typed in when you installed Mac OS X).

Mac OS X is rife with shortcuts for opening this all-important folder:

All these steps open your Home folder directly.

If you’re the compulsive sort, you can also navigate to it the long way: Double-click the Users folder, and then double-click the folder inside it that bears your name and looks like a house (see Figure 2-1).

So why has Apple demoted your files to a folder three levels deep? The answer may send you through the five stages of grief—Denial, Anger, Bargaining, Depression, and finally Acceptance—but if you’re willing to go through it, much of the mystery surrounding Mac OS X will fade away.

Mac OS X has been designed from the ground up for computer sharing. It’s ideal for any situation where different family members, students, or workers share the same Mac.

Each person who uses the computer will turn on the machine to find his own separate desktop picture, set of files, Web bookmarks, font collection, and preference settings. (You’ll find much more about user accounts in Chapter 12.)

Like it or not, Mac OS X considers you one of these people. If you’re the only one who uses this Mac, fine—simply ignore the sharing features. (You can also ignore all that business at the beginning of Chapter 1 about logging in.) But in its little software head, Mac OS X still considers you an account holder and stands ready to accommodate any others who should come along.

In any case, now you should see the importance of the Users folder in the main hard drive window. Inside are folders—the Home folders—named for the different people who use this Mac. In general, nobody is allowed to touch what’s inside anybody else’s folder.

If you’re the sole proprietor of the machine, of course, there’s only one Home folder in the Users folder—named for you. (The Shared folder doesn’t count; it’s described on Logging Out.)

This is only the first of many examples in which Mac OS X imposes a fairly rigid folder structure. Still, the approach has its advantages. By keeping such tight control over which files go where, Mac OS X keeps itself pure—and very, very stable. Other operating systems known for their stability, including Windows XP, Windows Vista, and Windows 7, work the same way.

Furthermore, keeping all your stuff in a single folder makes it very easy for you to back up your work. It also makes life easier when you try to connect to your machine from elsewhere in the office (over the network) or elsewhere in the world (over the Internet), as described in Chapter 22.

If you did want to explore the entirety of Mac OS X, to examine the contents of your hard drive (choose Go→Computer and double-click “Macintosh HD”), you’d find the following folders in the main hard drive window:

Within the folder that bears your name, you’ll find another set of standard Mac folders. (You can tell the Mac considers them holy because they have special logos on their folder icons.) Except as noted, you’re free to rename or delete them; Mac OS X creates the following folders solely as a convenience:

Every document, program, folder, and disk on your Mac is represented by an icon: a colorful little picture that you can move, copy, or double-click to open. In Mac OS X, icons look more like photos than cartoons, and you can scale them to practically any size.

A Mac OS X icon’s name can have up to 255 letters and spaces. If you’re accustomed to the 31-character or even eight-character limits of older computers, that’s quite a luxurious ceiling.

If you’re used to Windows, you may be delighted to discover that in Mac OS X, you can name your files using letters, numbers, punctuation—in fact, any symbol except the colon (:), which the Mac uses behind the scenes for its own folder-hierarchy designation purposes. And you can’t use a period to begin a file’s name.

To rename a file, click its name or icon (to highlight it) and then press Return. (Or, if you have time to kill, click once on the name, wait a moment, and then click a second time.)

In any case, a rectangle appears around the name (Figure 2-2). At this point, the existing name is highlighted; just begin typing to replace it. If you type a very long name, the rectangle grows vertically to accommodate new lines of text.

You can give more than one file or folder the same name, as long as they’re not in the same folder. For example, you can have as many files named “Chocolate Cake Recipe” as you like, provided each is in a different folder. And, of course, files called Recipe. doc and Recipe.xls can coexist in a folder, too.

As you edit a file’s name, remember that you can use the Cut, Copy, and Paste commands in the Edit menu to move selected bits of text around, just as though you were word processing. The Paste command can be useful when, for instance, you’re renaming many icons in sequence (Quarterly Estimate 1, Quarterly Estimate 2…).

And now, a few tips about renaming icons:

To highlight a single icon in preparation for printing, opening, duplicating, or deleting, click the icon once. (In a list or column view, as described in Chapter 1, you can also click on any visible piece of information about that file—its size, kind, date modified, and so on.) Both the icon and the name darken in a uniquely Snow Leopardish way.

That much may seem obvious. But most first-time Mac users have no idea how to manipulate more than one icon at a time—an essential survival skill in a graphic interface like the Mac’s.

To highlight multiple files in preparation for moving or copying, use one of these techniques:

Once you’ve highlighted multiple icons, you can manipulate them all at once. For example, you can drag them en masse to another folder or disk by dragging any one of the highlighted icons. All other highlighted icons go along for the ride. This technique is especially useful when you want to back up a bunch of files by dragging them onto a different disk, delete them all by dragging them to the Trash, and so on.

When multiple icons are selected, the commands in the File and Edit menus—like Duplicate, Open, and Make Alias—apply to all of them simultaneously.

For the speed fanatic, using the mouse to click an icon is a hopeless waste of time. Fortunately, you can also select an icon by typing the first few letters of its name.

When looking at your Home window, for example, you can type M to highlight the Movies folder. And if you actually intended to highlight the Music folder instead, then press the Tab key to highlight the next icon in the window alphabetically. Shift-Tab highlights the previous icon alphabetically. Or use the arrow keys to highlight a neighboring icon.

(The Tab-key trick works only in icon, list, and Cover Flow views—not column view, alas. You can always use the← and → keys to highlight adjacent columns, however.)

After highlighting an icon this way, you can manipulate it using the commands in the File menu or their keyboard equivalents: Open (⌘-O), put it into the Trash (⌘-Delete), Get Info (⌘-I), Duplicate (⌘-D), or make an alias (⌘-L), as described later in this chapter. By turning on the special disability features described on Mouse & Trackpad Tab (Cursor Control from the Keyboard), you can even move the highlighted icon using only the keyboard.

If you’re a first-time Mac user, you may find it excessively nerdy to memorize keystrokes for functions that the mouse performs perfectly well. If you make your living using the Mac, however, memorizing these keystrokes will reward you immeasurably with speed and efficiency.

In Mac OS X, there are two ways to move or copy icons from one place to another: by dragging them and by using the Copy and Paste commands.

You can drag icons from one folder to another, from one drive to another, from a drive to a folder on another drive, and so on. (When you’ve selected several icons, drag any one of them; the others tag along.) While the Mac is copying, you can tell that the process is under way even if the progress bar is hidden behind a window, because the icon of the copied material shows up dimmed in its new home, darkening only when the copying process is over. (You can also tell because Snow Leopard’s progress box is a lot clearer and prettier than it used to be.) You can cancel the process by pressing either ⌘-period or the Esc key.

Turn on “Apply to all” if all the incoming icons should (or should not) replace the old ones of the same names. Then click Replace or Don’t Replace, as you see fit—or Stop to halt the whole copying business.

Understanding when the Mac copies a dragged icon and when it moves it bewilders many a beginner. However, the scheme is fairly simple (see Figure 2-5) when you consider the following:

And if it turns out you just dragged something into the wrong window or folder, a quick ⌘-Z (the shortcut for Edit→Undo) puts it right back where it came from.

Dragging icons to copy or move them probably feels good because it’s so direct: You actually see your arrow cursor pushing the icons into the new location.

But you pay a price for this satisfying illusion. You may have to spend a moment or two fiddling with your windows to create a clear “line of drag” between the icon to be moved and the destination folder. (A background window will courteously pop to the foreground to accept your drag. But if it wasn’t even open to begin with, you’re out of luck.)

There’s a better way. Use the Copy and Paste commands to move icons from one window into another (just as you can in Windows, by the way—except that you can only copy, not cut, Mac icons). The routine goes like this:

  1. Highlight the icon or icons you want to move.

    Use any of the techniques described starting on Selecting Icons.

  2. Choose EditCopy.

    Or press the keyboard shortcut: ⌘-C.

  3. Open the window where you want to put the icons. Choose EditPaste.

    Once again, you may prefer to use the keyboard equivalent: ⌘-V. And once again, you can also Control-click (right-click) inside the window and then choose Paste from the shortcut menu that appears, or you can use the menu.

    A progress bar may appear as Mac OS X copies the files or folders; press Esc or ⌘-period to interrupt the process. When the progress bar goes away, it means you’ve successfully transferred the icons, which now appear in the new window.

You may remember from Chapter 1 that the title bar of every Finder window harbors a secret pop-up menu. When you ⌘-click it, you’re shown a little folder ladder that delineates your current position in the folder hierarchy. You may also remember that the tiny icon just to the left of the window’s name is actually a handle that you can drag to move a folder into a different window.

In many programs, you get the same features in document windows, as shown in Figure 2-5. For example, by dragging the tiny document icon next to the document’s name, you can perform these two interesting stunts:

Here’s a common dilemma: You want to drag an icon not just into a folder, but into a folder nested inside that folder. This awkward challenge would ordinarily require you to open the folder, open the inner folder, drag the icon in, and then close both windows. As you can imagine, the process is even messier if you want to drag an icon into a sub-subfolder or a sub-sub-subfolder.

Instead of fiddling around with all those windows, you can instead use the spring-loaded folders feature (Figure 2-6).

It works like this: With a single drag, drag the icon onto the first folder—but keep your mouse button pressed. After a few seconds, the folder window opens automatically, centered on your cursor:

Still keeping the button down, drag onto the inner folder; its window opens, too. Now drag onto the inner inner folder—and so on. (If the inner folder you intend to open isn’t visible in the window, you can scroll by dragging your cursor close to any edge of the window.)

Tip

You can even drag icons onto disks or folders whose icons appear in the Sidebar (Chapter 1). When you do so, the main part of the window flashes to reveal the contents of the disk or folder you’ve dragged onto. When you let go of the mouse, the main window changes back to reveal the contents of the disk or folder where you started dragging.

In short, Sidebar combined with spring-loaded folders makes a terrific drag-and-drop way to file a desktop icon from anywhere to anywhere—without having to open or close any windows at all.

When you finally release the mouse, you’re left facing the final window. All the previous windows closed along the way. You’ve neatly placed the icon into the depths of the nested folders.

That spring-loaded folder technique sounds good in theory, but it can be disconcerting in practice. For most people, the long wait before the first folder opens is almost enough wasted time to negate the value of the feature altogether. Furthermore, when the first window finally does open, you’re often caught by surprise. Suddenly your cursor—mouse button still down—is inside a window, sometimes directly on top of another folder you never intended to open. But before you can react, its window, too, has opened, and you find yourself out of control.

Fortunately, you can regain control of spring-loaded folders using these tricks:

Highlighting an icon and then choosing File→Make Alias (or pressing ⌘-L) generates an alias, a specially branded duplicate of the original icon (Figure 2-7). It’s not a duplicate of the file—just of the icon; therefore it requires negligible storage space. When you double-click the alias, the original file opens. (A Macintosh alias is essentially the same as a Windows shortcut.)

You can create as many aliases as you want of a single file; therefore, in effect, aliases let you stash that file in many different folder locations simultaneously. Double-click any one of them and you open the original file, wherever it may be on your system.

An alias takes up very little disk space, even if the original file is enormous. Aliases are smart, too: Even if you rename the alias, rename the original file, move the alias, and move the original around on the disk, double-clicking the alias still opens the original file.

And that’s just the beginning of alias intelligence. Suppose you make an alias of a file that’s on a removable disc, like a CD. When you double-click the alias on your hard drive, the Mac requests that particular disc by name. And if you double-click the alias of a file on a different machine on the network, your Mac attempts to connect to the appropriate machine, prompting you for a password (see Chapter 13)—even if the other machine is thousands of miles away and your Mac must go online to connect.

Here are a couple of ways you can put aliases to work:

  • You may want to file a document you’re working on in several different folders, or place a particular folder in several different locations.

  • You can use the alias feature to save you some of the steps required to access another hard drive on the network. (Details on this trick are in Chapter 13.)

An alias doesn’t contain any of the information you’ve typed or composed in the original file. Don’t email an alias to the Tokyo office and then depart for the airport, hoping to give the presentation upon your arrival in Japan. When you double-click the alias, now separated from its original, you’ll be shown the dialog box at the bottom of Figure 2-7.

If you find yourself 3,000 miles away from the hard drive on which the original file resides, click Delete Alias (to delete the orphan alias) or OK (to do nothing, leaving it where it is).

In certain circumstances, however, the third button—Fix Alias—is the most useful. Click it to summon the Fix Alias dialog box, which you can use to navigate the folders on your Mac. When you click a new icon and then click Choose, you associate the orphaned alias with a different file.

Such techniques become handy when, for example, you click your book manuscript’s alias on the desktop, forgetting that you recently saved it under a new name and deleted the older draft. Instead of simply showing you an error message that says “‘Enron Corporate Ethics Handbook’ can’t be found,” the Mac displays the box that contains the Fix Alias button. By reassociating the alias with the new document, you can save yourself the trouble of creating a new alias. From now on, double-clicking your manuscript’s alias on the desktop opens the new draft.

Snow Leopard includes a welcome blast from the Mac’s distant past: icon labels. This feature lets you tag selected icons with one of seven different labels, each of which has both a text label and a color associated with it.

To do so, highlight the icons. Open the File menu (or the menu, or the shortcut menu that appears when you Control-click/right-click the icons). There, under the heading Color Label, you’ll see seven colored dots, which represent the seven labels you can use. Figure 2-8 shows the routine.

After you’ve applied labels to icons, you can perform some unique file-management tasks—in some cases on all of them simultaneously, even if they’re scattered across multiple hard drives. For example:

No single element of the Macintosh interface is as recognizable or famous as the Trash icon, which now appears at the end of the Dock.

You can discard almost any icon by dragging it into the Trash can (actually a waste-basket, not a can, but let’s not quibble). When the tip of your arrow cursor touches the Trash icon, the little wastebasket turns black. When you release the mouse, you’re well on your way to discarding whatever it was you dragged. As a convenience, Mac OS X even replaces the empty-wastebasket icon with a wastebasket-filled-with-crumpled-up-papers icon, to let you know there’s something in there.

It’s well worth learning the keyboard alternative to dragging something into the Trash: Highlight the icon, and then press ⌘-Delete (which corresponds to the File→Move to Trash command). This technique is not only far faster than dragging, but it also requires far less precision, especially if you have a large screen. Mac OS X does all the Trash-targeting for you.

Note

Snow Leopard Spots: If a file is locked (Locked Files: The Next Generation), a message appears to let you know; it offers you the chance to fling it into the Trash anyway. That’s a better solution than before, when you’d be forced to unlock the file before you could trash it.

File and folder icons sit in the Trash forever—or until you choose Finder→Empty Trash, whichever comes first.

If you haven’t yet emptied the Trash, you can open its window by clicking the waste-basket icon once. Now you can review its contents: icons that you’ve placed on the waiting list for extinction. If you change your mind, you can rescue any of these items in any of these ways:

When you empty the Trash as described above, each trashed icon sure looks like it disappears. The truth is, though, the data in each file is still on the hard drive. Yes, the space occupied by the dearly departed is now marked with an internal “This space available” message, and in time, new files may overwrite that spot. But in the meantime, some future eBay buyer of your Mac—or, more imminently, a savvy family member or office mate—could use a program like Norton Utilities to resurrect those deleted files. (In more dire cases, companies like DriveSavers.com can use sophisticated clean-room techniques to recover crucial information—for several hundred dollars, of course.)

That notion doesn’t sit well with certain groups, like government agencies, international spies, and the paranoid. As far as they’re concerned, deleting a file should really, really delete it, irrevocably, irretrievably, and forever.

Mac OS X’s Secure Empty Trash command to the rescue! When you choose this command from the Finder menu, the Mac doesn’t just obliterate the parking spaces around the dead file. It actually records new information over the old—random 0’s and 1’s. Pure static gibberish.

The process takes longer than the normal Empty Trash command, of course. But when it absolutely, positively has to be gone from this earth for good (and you’re absolutely, positively sure you’ll never need that file again), Secure Empty Trash is secure indeed.

By clicking an icon and then choosing File→Get Info, you open an important window like the one shown in Figure 2-12. It’s a collapsible, multipanel screen that provides a wealth of information about a highlighted icon. For example:

Apple built the Get Info window out of a series of collapsed “flippy triangles,” as shown in Figure 2-12. Click a triangle to expand a corresponding information panel.

Tip

The title-bar hierarchical menu described on Title Bar works in the Get Info dialog box, too. That is, ⌘-click the Get Info window’s title bar to reveal where this icon is in your folder hierarchy.

Depending on whether you clicked a document, program, disk, alias, or whatever, the various panels may include the following: