6
The Care and Feeding of Files and Folders
In This Chapter
Checking out the OS X folder structure
Saving your document before it’s too late
Opening icons
Getting (and staying) organized
Copying, pasting, and moving files and folders
This could be the most important chapter in this book. If you don’t understand how to open and save files by using the Open dialog and Save sheets or how to use the file and folder system, you’ll have a heck of a time getting the hang of your Mac. Ask any longtime Mac user; the old lament is pretty common: “Well, I saved the file, but now I don’t know where it went.” It happens all the time with new users; if they don’t master these essential techniques, they often become confused about where files are located on their hard drives. Sure, the Sidebar has an item called All My Files that displays all of your files, and Spotlight can find files in milliseconds, but if you have thousands or tens of thousands of files, both can be more of a curse than a blessing.
This chapter is a tonic for finding the file or folder you want. Knowing where your files are is something every Mac user should grok (fully understand). Hang with me and pay attention; everything will soon become crystal clear.
At the end of the day, all the aforementioned techniques are useful and good to know, but take it from me: It’s often faster and easier if you know exactly where a file or folder is than to hunt for it.
Later in the chapter, I look at using Open dialogs and Save sheets within applications to find files and folders. You see them only after you launch a program and use that program’s File menu to open or save a file. (For more on launching applications, read the parts of Chapter 5 about icons; for more on creating and opening documents, see the documentation or Help file for the program that you’re using.)
Understanding the OS X Folder Structure
Start by looking at the folder structure of a typical OS X installation. Open a Finder window and click the icon for your hard drive (which is typically called Macintosh HD) in the Sidebar. You should now see at least four folders: Applications, Library, System, and Users. Within the Users folder, each user with an account on this Mac has his own set of folders containing documents, preferences, and other information that belongs to that user and account.
Within the Users folder, you find your personal Home folder (which bears your short user name), along with a Shared folder, where you can put files you want to share with other users. All these files are stored in a nested folder structure that’s a bit tricky to understand at first. This structure makes more sense after you spend a little time with it and figure out some basic concepts.
Take a look at Figure 6-1; you can see how these main folders are related to one another. In the sections that follow, you look at each of these folders in more depth and find out more about what’s nested inside each one.
Figure 6-1: A bird’s-eye view of key folders on your Mac.
Understanding nested folders
Folders within other folders are often called nested folders. To get a feel for the way nested folders work in OS X, check out Figure 6-2.
Figure 6-2: Nested folders, going four levels deep.
You can see the following in Figure 6-2:
The Desktop is the top-level folder in this example; all the other folders and files you see reside within the Desktop folder.
Folder 1 is inside the Desktop folder, which is one level deep.
Folder 2 is inside Folder 1, which is one level deeper than Folder 1, or two levels deep.
Folder 3 is inside Folder 2 and is three levels deep.
The two files inside Folder 3 are four levels deep.
From the top: The Computer folder
I start with the Computer folder, which is the top level of the folder hierarchy. The Computer folder shows all the storage devices (hard drives, CD- or DVD-ROM, USB flash drive, and so forth) that are currently connected to your Mac. The following steps show how you can start at the Computer folder and drill down through the folder structure:
1. To find the Computer folder, choose Go⇒Computer or press Shift++C.
In Figure 6-1, the Computer folder is called Bob L’s MacBook Pro, and it contains a hard-drive icon (Mavericks HD) and a Network icon, with which you can access servers or other computers on your local network. (If that seems mysterious, read Chapter 16 for the whole scoop on sharing files with other Macs and sharing your Mac with other users.)
If you don’t see a Computer icon in your Sidebar, choose Finder⇒Preferences, click the Sidebar icon at the top, and then select the check box for your computer. You can change a Mac’s name (Bob L’s MacBook Pro in Figure 6-1) in the Sharing System Preferences pane, which you can access by launching the System Preferences application (from the Applications folder, the Dock, or the menu) and then clicking the Sharing icon.
You might have more or fewer icons in your Computer folder than you see in Figure 6-1, depending on how many disks you have mounted.
2. Double-click the icon that holds your OS X stuff.
(Technically, this drive is called your boot drive.) In Figure 6-1, that hard drive is called Mavericks HD. I have no idea what yours is called, of course; if you haven’t changed it, it’s probably called Macintosh HD.
3. Check out the folders you find there.
You should see at least four folders (unless you’ve added some; if you installed the Xcode programming tools, for example, you have more). In the next few sections, I walk you through what you can find in each one.
Peeking into the Applications folder
You can access the Applications folder, located at the root level of your boot drive (the one with OS X installed on it), by clicking the Applications icon in the Sidebar, by choosing it in the Go menu, or by pressing Shift++A. In this folder, you find applications and utilities that Apple includes with OS X. Most users of a given Mac have access to all the items in the Applications folder, with the exception of managed accounts or accounts with Parental Controls, as discussed in Chapter 16.
Finding fonts (and more) in the public Library folder
The Library folder, at the root level of your OS X hard drive, is like a public library; it stores items available to everyone who logs into any account on this Mac.
What’s that you say? You don’t see a Library folder inside your Home folder? Well it’s like this: In versions of OS X earlier than OS X Lion (10.7), you would have seen a folder named Library between the Downloads and Movies folders in your Home folder (or mine — bobl — in Figure 6-1). But that was then, and this is now. In OS X Mavericks, the Home Library folder is hidden from view to protect you from yourself. You discover the secret to making it visible if you need it in the “Your personal Library card” section of this chapter, which is coming up.
By and large, the public Library subfolder that gets the most use is the Fonts folder, which houses many of the fonts installed on the Mac. For the most part, fonts can be made available in one of two ways:
To everyone who uses the Mac: If that’s the case, they’re stored here in the Fonts folder.
To a single user: In this case, you place the fonts in the user’s Library folder (the one in the user’s Home folder).
I discuss fonts more in Chapter 14. Meanwhile, some other public Library subfolders that you might use or add to are the iMovie, iTunes, iPhoto, and iDVD folders (where you put plug-ins for those programs); the Scripts folder (which houses AppleScripts accessible to all users); and the Desktop Pictures folder (where you can place pictures to be used as Desktop backgrounds).
Finally, the Library in the Users folder is where OS X stores configuration and preferences files shared by all users.
Note: Under most circumstances, you won’t actually add items to or remove items from folders in this Library yourself. Software installers usually do the heavy lifting for you by placing all their little pieces in the appropriate Library folders. You shouldn’t need to touch this Library often, if ever. That said, knowing what these folders are — and who can access their contents — might come in handy down the road a piece.
The locations of all these libraries are illustrated in Figure 6-3.
Figure 6-3: A guide to which Library is which.
Let it be: The System folder
The System folder contains the files that OS X needs to start up and keep working.
The bottom line is that you should, for the most part, restrict yourself to using the folders within your Home folder. If you’re the only user of your Mac, you can pretty much forget about the root level Library. But those with more than one user account on their Mac may someday need to add or remove a file from this folder.
So now you can forget everything outside your Home folder because with few exceptions, that’s where all of your “stuff” will reside.
The usability of the Users folder
When you open the Users folder, you see a folder for each person who has a user account on the Mac, as well as the Shared folder.
I should also mention that each user account has its own preferences and settings and that one user can’t see another user’s files by default.
There’s no place like Home
From the Users folder, you can drill down into the Home folder to see what’s inside. When the user logs on to this Mac, his Home folder appears whenever he clicks the Home icon in the Sidebar, chooses Go⇒Home, or uses the keyboard shortcut Shift++H.
When you open your Home folder, you see a Finder window with a little house icon and your short username in the title bar. Seeing your short username in the title bar tells you that you’re in your Home folder. Every user has a Home folder named after his or her short username (as specified in the Users & Groups System Preferences pane). Figure 6-4 shows that my Home folder is named bobl — the short name I used when I first set up my Mac.
Figure 6-4: My Home folder.
If your Mac has more than one user, you can see the other users’ Home folders in your Users folder, but OS X prevents you from opening files from or saving files to them.
By default, your Home folder has several folders inside it created by OS X. The following four are the most important:
Desktop: If you put items (files, folders, applications, or aliases) on the Desktop, they’re actually stored in the Desktop folder.
Documents: This is the place to put all the documents (letters, spreadsheets, recipes, and novels) that you create.
Library: As I mention earlier in this chapter, this Library folder is invisible in Mavericks; I show you how to deal with that shortly. Rest assured that even though it’s hidden, it’s still one of the most important folders in your Home folder, containing Preferences (files containing the settings you create in System Preferences and other places), fonts available only to you (as described earlier in this chapter), and other stuff that you — and only you — expect to use.
Public: If others on your local area network use file sharing to connect with your Mac, they can’t see or use the files or folders in your Home folder (unless you’ve explicitly shared them), but they can share files you’ve stored in your Home folder’s Public folder. (Read more about file sharing and Public folders in Chapter 16.)
You can create more folders, if you like. In fact, every folder that you ever create (at least every one you create on this particular hard drive or volume) should be within your Home folder. I explain more about creating folders and subfolders and organizing your stuff inside them later in this chapter.
If you decide that you don’t want an item on the Desktop anymore, delete it by dragging its icon from the Desktop folder to the Trash or by dragging its icon from the Desktop itself to the Trash. Both techniques yield the same effect: The file is in the Trash, where it remains until you empty the Trash. Or if you don’t want it on the Desktop anymore but don’t want to get rid of it either, you can drag it from the Desktop into any other folder you like.
The other four folders that you should see in your Home folder are Downloads, Movies, Music, and Pictures. All these folders except Downloads are empty until you (or a program such as iTunes, GarageBand, iPhoto, or iMovie, which create files inside these folders automatically the first time you launch them) put something in these folders. And the Downloads folder might as well be empty, but it contains a document entitled, About Downloads, with a little info on Dock stacks and the Downloads folder and concludes by saying, “. . . when you’re done reading this document, feel free to throw it out.”
Your personal Library card
The invisible Library subfolder of your Home folder is the repository of everything that OS X needs to customize your Mac to your tastes. If you want to add something to a Library folder, it's usually best to add it to your Home/Library
folder. You won't spend much time (if any) adding things to the Library folder or moving them around within it, and that's probably why it's now hidden from sight. Still, I think it's a good idea for you to know what's in your Home/Library
.
In the “Finding fonts (and more) in the public Library folder” section, earlier in this chapter, I discuss the Library folder that’s used to specify preferences for the Mac as a whole. But this Library folder is all about you and your stuff.
To find your hidden Home/Library
folder, do this:
1. Hold down the Option key on your keyboard.
2. Click the Go menu.
The (formerly) invisible Library folder appears in the Go menu as long as the Option key is pressed, as shown in Figure 6-5.
3. Select Library and release the mouse button.
Figure 6-5: A normal Go menu (left) and a Go menu with the Option key pressed (right).
You should see several folders in the Home/Library
folder; the exact number depends on the software that you install on your Mac. You probably have folders called Mail, Safari, Logs, and Preferences, for example.
Some of the most important standard folders in the Library folder include the following:
Application Support: Some applications store their support files here; others store theirs in the main (root-level) public Library folder.
Fonts: This folder is empty until you install your own fonts here. The fonts that come with OS X aren’t stored here, but in the Library folder at root level for everyone who uses this Mac. I discuss this topic earlier in this chapter. If you want to install fonts so that only you have access to them, put them in the Fonts folder in your Library folder.
The easiest way to install a font is to double-click its icon and let Mavericks’ Font Book utility handle it for you, as described in Chapter 14. But I’d be remiss if I didn’t also mention how to install a font manually:
• To install a font that only you can use: Drag the font file's icon to the Fonts folder in your Home/Library
. The font is available only to this user account (because other users can't use fonts stored in your Home/Library
folder).
• To install a font for all users of this Mac: Drag the font file’s icon into the Fonts folder in the public Library folder — the one at root level that you see when you open your hard drive’s icon.
Preferences: The files here hold the information about whichever things you customize in OS X or in the applications you run. Whenever you change a system or application preference, that info is saved to a file in the Preferences folder.
Don't mess with the Preferences folder! You should never need to open or use this folder unless something bad happens — if, for example, you suspect that a particular preferences file has become corrupted (that is, damaged). My advice is to just forget that you know about this folder and let it do its job. If you don't know why you're doing something to a folder (other than the Fonts folder) in your Home/Library
, don't do it. There must be some good reasons why Apple decided to hide the Home/Library
folder in OS X Mavericks, and I'm sure that one of them is to keep you (or me) from accidentally screwing something up.
Saving Your Document Before It’s Too Late
If you have a feel for the OS X folder structure, you can get down to the important stuff — namely, how to save documents and where to save them. You can create as many documents as you want, using one program or dozens of ’em, but all could be lost if you don’t save the files (or versions of the files) to a storage device such as your hard drive or other disk.
When you save a file, you’re committing a copy to a disk — whether it’s a disk connected directly to your Mac, one available over a network, or a removable disk such as a USB flash drive or portable hard disk.
Lion introduced three new features — Resume, Auto Save, and Versions — to make your life easier. In previous versions of OS X, applications generally showed a blank page or nothing at all when you launched them. Mavericks’ Resume feature automatically reopens all windows that were onscreen when you quit the app. So, when you launch the app again, all the windows are reopened in the same position onscreen as when you quit. Best of all, Resume seems to work with most third-party apps.
Programs have offered Auto Save before, but now it’s baked into OS X. Auto Save automatically saves versions of your work as you work, when you pause, and every five minutes, whether you need it or not.
For as long as we’ve had Macs, we’ve saved unique versions of our files, creating and managing them with the Save As command or by duplicating and renaming them in the Finder. Now Mavericks (like Lion and Mountain Lion before it) takes over version control for you by automatically saving versions as described in the preceding paragraph.
Every few minutes
Before you switch to another program
Before you print a document
Before you stand up
Stepping through a basic Save
This section walks you through the steps you use the first time you save a document. The process is the same whether your app supports Auto Save and Versions or not. It’s only after the initial save that Auto Save and Versions come into play.
Saving a file works pretty much the same way in any application you use to create documents. For this example, I use OS X’s word processing application, TextEdit, but the process will be very similar in Microsoft Word, Adobe Photoshop, Apple Keynote, or any other application.
Now that we’re both on the same page, both literally and figuratively, here’s how saving a file works: When you choose to save a file for the first time (by choosing File⇒Save or pressing +S), a Save sheet appears in front of the document that you’re saving, as shown in Figure 6-6. I call this a basic Save sheet (as opposed to an expanded Save sheet, which I get to in a moment):
1. In the Save As field, type a name for your file.
When a Save sheet appears for the first time, the Save As field is active and displays the name of the document. The document name (usually, Untitled) is selected; when you begin typing, the name disappears and is replaced by the name you type.
2. If the Where pop-up menu lists the location where you want to save your file, choose that location and proceed to Step 5; if not, click the disclosure button (the one with the little triangle to the right of the word Untitled in Figure 6-6).
Figure 6-6: A basic Save sheet looks a lot like this.
You can choose from a short list of folders and volumes listed in the basic Save sheet’s Where pop-up menu (which are the same devices and favorites you see in the Sidebar of Finder windows). Or, if you click the disclosure button (triangle), the sheet expands so that you can navigate folders just as you do in the Finder: by opening them to see their contents.
If you clicked the Save button instead of pulling down the Where menu, your file will be saved to iCloud, Apple’s free online storage service (which you discover in Chapter 10).
If you switch to expanded view by clicking the disclosure button, the Where pop-up menu shows the path to the folder the file will be saved in (Documents in Figure 6-6 and Figure 6-7).
I think that the Where menu should be the same in both basic and expanded Save sheets, as it was before OS X 10.5 Leopard. It seems more confusing to have the contents of this menu change based on whether the Save sheet is expanded or not. I’ve called it to your attention so it won’t confuse you.
Figure 6-7: An expanded Save sheet looks similar to this one (shown in List view).
Switch between the basic and expanded Save sheets a few times by clicking the disclosure button. Make sure that you see and understand the difference between what you see in the Where menu in a basic Save sheet and what you see in the Where menu in an expanded Save sheet.
3. To find the folder where you want to save your file, choose among views by clicking the Icon, List, Column, or Cover Flow view button.
(The buttons look like their counterparts in Finder windows.) In icon view, you double-click a folder to open it. List and Cover Flow views offer disclosure triangles for folders and disks, so single-click the disclosure triangles of folders to see their contents. In column view, you click an item on the left to see its contents on the right, just as you do in a column-view Finder window.
You can also use the Forward and Back buttons or the Sidebar, both available only in an expanded Save dialog, to conveniently navigate your disk. Many of these navigation aids work just like the ones in the Finder; flip back to Chapter 5 for more details. You can enlarge the Save sheet to see more the same way you enlarge a Finder window: Drag an edge or corner of the sheet.
If you can’t find the folder in which you want to save your document, type the folder’s name in the Search box. It works just like the Search box in a Finder window, as described in Chapter 5. You don’t even have to press Enter or Return; the Save sheet updates itself to show you only items that match the characters as you’ve typed them.
4. Select the folder where you want to save your file in the Where pop-up menu or Sidebar.
5. If you want to create a new subfolder of the selected folder to save your file in, click the New Folder button, give the new folder a name, and then save your file in it.
In Figure 6-8, I’ve selected an existing folder named Novels. You can tell that it’s selected because its name is displayed in the Where menu and highlighted below that in the first column.
Figure 6-8: Saving a file in the Novels folder (which is in the Documents folder).
The selected folder is where your file will be saved.
The keyboard shortcut for New Folder is Shift++N, regardless of whether you’re in a Save sheet or the Finder. If I’d wanted to create a new folder inside the Novels folder in Figure 6-8, I could have clicked the New Folder button or pressed the shortcut.
6. In the File Format pop-up menu, make sure the format selected is the one you want.
7. If you want to turn off the display of file extensions (such as .rtf
, .pdf
, and .txt
) in Save sheets, select the Hide Extension check box.
8. Double-check the Where pop-up menu one last time to make sure that the correct folder is selected; then click the Save button to save the file to the active folder.
If you click Save, the file appears in the folder you selected. If you change your mind about saving this file, clicking Cancel dismisses the Save sheet without saving anything anywhere. In other words, the Cancel button returns things to the way they were before you displayed the Save sheet.
One last thing: In Figures 6-6, 6-7, and 6-8, I used the Save sheet for TextEdit as an example. In programs other than TextEdit, the Save sheet might contain additional options, fewer options, or different options, and therefore may look slightly different. The File Format menu, for example, is a feature specific to TextEdit; it might not appear in other applications’ Save sheets. Don’t worry. The Save sheet always works the same way, no matter what options it offers.
Save As versus Duplicate: Different names for same result
File⇒Duplicate and File⇒Save As serve the same purpose and achieve the same result. The difference is that you’ll find File⇒Duplicate in apps that support Versions and Auto Save, and File⇒Save As in apps that don’t. They’re different names for achieving the same result: Saving a file that’s already been saved with a different name, with the option of saving the renamed file in a different folder.
Before I get into the details, you may be wondering why you would want to save an existing file with a different name. So here's a good (albeit kind of rude) example: Suppose that you have two cousins, Kate and Nancy. You write Kate a long, chatty letter and save this document with the name Letter to Kate
. Later, you decide that you want to send almost the same letter to Nancy, but you want to change a few things. So you change the part about your date last night and replace all references to Kate's husband, Kevin, with references to Nancy's husband, Norman. (Aren't computers grand?)
So you make all these changes in Letter to Kate
, but you haven't resaved this document yet, and although the document on your screen is actually a letter to Nancy, its filename is still Letter to Kate
. Think of what would happen if you were to save it now without using the Save As feature: Letter to Kate
reflects the changes that you just made. (The stuff in the letter meant for Kate is blown away, replaced by the stuff that you just wrote to Nancy.) Thus the filename Letter to Kate
is inaccurate. Even worse, you might no longer have a copy of the original letter you sent to Kate! The solution? Just use Save As or Duplicate to rename this file Letter to Nancy
by choosing File⇒Save As or File⇒Duplicate.
If you chose Save As: A Save sheet appears, in which you can type a different filename in the Save As field. You can also navigate to another folder, if you like, and save the newly named version of the file there. Now you have two distinct files: Letter to Kate
and Letter to Nancy
. Both contain the stuff they should, but both started life from the same file.
If you chose Duplicate: The title bar of the document becomes editable so you can change its name without even seeing a Save sheet. (Refer to the figure in the earlier sidebar, “Does it have Auto Save and Versions or not?”) Press Enter or Return, and the renamed file will be saved in the same folder as the original. Or, if you want to save the newly renamed file in a different location, choose File⇒Move To or click the little triangle to the right of the document’s name, choose Move To in its pop-up menu, and then from the pop-up menu, select a folder in which to save the file.
One last thing: If the app you’re using supports Mavericks’ Versions, it creates a snapshot called a Version automatically as you work, when you pause, every five minutes, and every time you choose File⇒Save (+S). Choose File⇒Revert To⇒Browse All Versions to compare different versions of the document you’ve saved side-by-side, as shown in Figure 6-9.
Figure 6-9 is actually Mavericks’ Time Machine backup utility displaying the various Versions. Read more about Time Machine in Chapter 18.
Figure 6-9: Browse All Versions lets you compare all versions and revert to an earlier version.
Open Sez Me
You can open any icon in the Finder — whether it’s a file or a folder — in at least six ways. (Okay, there are at least seven ways, but one of them belongs to aliases, which I discuss in great detail back in Chapter 5.) Anyway, here are the ways:
Click the icon once to select it and choose File⇒Open.
Click the icon twice in rapid succession.
If the icon doesn’t open, you double-clicked too slowly. You can test (and adjust) your mouse’s sensitivity to double-click speed in the Mouse (or Trackpad) System Preference pane, which you can access by launching the System Preferences application (from the Applications folder, the Dock, or the menu) and then clicking the Mouse (or Trackpad) icon.
Select the icon and then press either +O or +.
Right-click or Control-click it and then choose Open from the contextual menu.
If the icon is a document, drag it onto the application icon (or the Dock icon of an application) that can open that type of document.
If the icon is a document, right-click or Control-click it and choose an application from the Open With submenu of the contextual menu.
You can also open any document icon from within an application, of course. Here’s how that works:
1. Just launch your favorite program, and choose File⇒Open (or press +O, which works in most Mac programs).
An Open dialog appears, like the one shown in Figure 6-10.
Figure 6-10: The Open dialog using column view.
When you use a program’s Open dialog, only files that the program knows how to open appear enabled (in black rather than light gray) in the file list. In effect, the program filters out the files it can’t open, so you barely see them in the Open dialog. This method of selectively displaying certain items in Open dialogs is a feature of most applications. Therefore, when you’re using TextEdit, its Open dialog dims all your spreadsheet files (because TextEdit can open only text, Rich Text Format, Microsoft Word, and some picture files). Pretty neat, eh?
2. In the dialog, simply navigate to the file you want to open (using the same techniques you use in a Save sheet).
Click a favorite folder in the Sidebar or use Spotlight if you can’t remember where the file resides.
3. Select your file and click the Open button.
For what it’s worth, some applications allow you to select multiple files in their Open dialogs by holding down either Shift (for contiguous selections) or (for noncontiguous selections). If you need to open several files, it’s worth a try; the worst thing that could happen is that it won’t work and you’ll have to open the items one at a time.
With drag-and-drop
Macintosh drag-and-drop is usually all about dragging text and graphics from one place to another. But there’s another angle to drag-and-drop — one that has to do with files and icons.
You can open a document by dragging its icon onto that of the proper application. You can open a document created with Microsoft Word, for example, by dragging the document icon onto the Microsoft Word application’s icon. The Word icon highlights, and the document launches. Usually, of course, it’s easier to double-click a document’s icon to open it; the proper application opens automatically when you do — or at least, it does most of the time. Which reminds me . . .
With a Quick Look
To use the Quick Look command to peek at the contents of most files in Open dialogs, right-click or Control-click the file and choose Quick Look, or use its easy-to-remember shortcut: Press the spacebar. Whichever way, you’ll soon see the contents of that file in a floating window without launching another application.
The Quick Look window, shown in Figure 6-11, shows you the contents of many types of files.
Figure 6-11: The Quick Look window showing the contents of the B&W Head Shot.tiff
file.
When your Mac can’t open a file
If you try to open a file, but OS X can't find a program to open that file, OS X prompts you with an alert window. I tried to open a very old (1993) file created on a long-defunct Psion Series 3 handheld PDA — a file so old that most of you have probably never seen the .wrd
file extension, shown in Figure 6-12.
Click Cancel to abort the attempt to open the file, or click the Choose Application or Search App Store button to select another application to open this file.
Figure 6-12: Oops! OS X helps you find the correct application.
If you click the Choose Application button, a dialog appears (conveniently opened to your Applications folder and shown in Figure 6-13). Applications that OS X doesn’t think can be used to open the file are dimmed. For a wider choice of applications, choose All Applications (instead of Recommended Applications) from the Enable pop-up menu.
Figure 6-13: Choosing an application to open this document.
With the application of your choice
I don’t know about you, but people send me files all the time that were created by applications I don’t use . . . or at least that I don’t use for that document type. OS X lets you specify the application in which you want to open a document in the future when you double-click it. More than that, you can specify that you want all documents of that type to open with the specified application. “Where is this magic bullet hidden?” you ask. Right there in the file’s Info window.
Assigning a file type to an application
Suppose that you want all .jpg
files that usually open in Preview to open instead in Acorn, a more capable third-party image-editing program. Here's what to do:
1. Click one of the files in the Finder.
2. Choose File⇒Get Info (+I).
3. In the Info window, click the gray triangle to disclose the Open With pane.
4. From the pop-up menu, choose an application that OS X believes will open this document type.
In Figure 6-14, I’m choosing Acorn. Now Acorn opens when I open this file (instead of the default application, Preview).
Figure 6-14: Before (left) and after (right) changing the application that opens this document.
5. (Optional) If you click the Change All button at the bottom of the Open With pane, as shown on the right side of Figure 6-14, you make Acorn the new default application for all .jpg
files that would otherwise be opened in Preview.
Notice the handy alert that appears when you click the Change All button and how nicely it explains what will happen if you click Continue.
Opening a file with an application other than the default
If I were to double-click an MP3 file, for example, the file usually would open in iTunes (and, by default, would be copied into my iTunes Library). But I frequently want to audition (listen to) MP3 files with QuickTime Player, so they’re not automatically added to my iTunes music library. Dragging the MP3 file onto QuickTime Player’s icon in the Applications folder or its Dock icon (if it’s in the Dock) solves this conundrum quickly and easily.
One last thing: If all you want to do is open a file with an application other than its default (and not change anything for the future), the techniques I’ve just described work fine, but the easiest way is to right-click the file and choose another app from the pop-up menu, as shown in Figure 6-15.
Figure 6-15: To open a file with an app other than its default, right-click and choose the app you desire.
Organizing Your Stuff in Folders
I won’t pretend to be able to organize your Mac for you. Organizing your files is as personal as your taste in music; you develop your own style with the Mac. But after you know how to open and save documents when you’re using applications, these sections provide food for thought — some ideas about how I organize things — and some suggestions that can make organization easier for you, regardless of how you choose to do it.
The upcoming sections look at the difference between a file and a folder; show you how to set up nested folders; and cover how some special folder features work. After you have a good handle on these things, you’ll almost certainly be a savvier — and better organized — OS X user.
Files versus folders
When I speak of a file, I’m talking about what’s connected to any icon except a folder or disk icon. A file can be a document, an application, an alias of a file or an application, a dictionary, a font, or any other icon that isn’t a folder or disk. The main distinction is that you can’t put something in most file icons.
When I talk about folders, I’m talking about things that work like manila folders in the real world. Their icons look like folders, like the one in the margin to the left; they can contain files or other folders, called subfolders. You can put any icon — any file or folder — inside a folder.
Organizing your stuff with subfolders
As I mention earlier in this chapter, you can put folders inside other folders to organize your icons. A folder “nested” inside another folder is called a subfolder.
You can create subfolders according to whatever system makes sense to you — but why reinvent the wheel? Here are some organizational topic ideas and naming examples for subfolders:
By type of document: Word-Processing Documents, Spreadsheet Documents, Graphics Documents
By date: Documents May–June, Documents Spring ’12
By content: Memos, Outgoing Letters, Expense Reports
By project: Project X, Project Y, Project Z
When you notice your folders swelling and starting to get messy (that is, filling with tons of files), subdivide them again by using a combination of these methods that makes sense to you. Suppose that you start by subdividing your Documents folder into multiple subfolders. Later, when those folders begin to get full, you can subdivide them even further, as shown in Figure 6-16.
My point (yes, I do have one!): Allow your folder structure to be organic, growing as you need it to grow. Let it happen. Don’t let any single folder get so full that it’s a hassle to deal with. Create new subfolders when things start to get crowded. (I explain how to create folders in the next section.)
If you use a particular folder a great deal, put it in your Dock, or make an alias of it and move the alias from the Documents folder to your Home folder or to your Desktop (for more info on aliases, see Chapter 5) to make the folder easier to access. Or drag the folder (or its alias) to the Sidebar, so it’s always available, including in Open dialogs and Save sheets. If you write a lot of letters, keep an alias to your Correspondence folder in your Home folder, in the Dock, on your Desktop, or in the Sidebar for quick access. (By the way, there’s no reason why you can’t have a folder appear in all four places, if you like. That’s what aliases are for, right?)
Figure 6-16: Before (left) and after (right) organizing the Novels and Finances folders with subfolders.
Figure 6-17: It’s super-convenient to have your Documents folder in the Dock.
Creating new folders
So you think that Apple has already given you enough folders? Can’t imagine why you’d need more? Think of creating new folders the same way you’d think of labeling a new folder at work for a specific project. New folders help you keep your files organized, enabling you to reorganize them just the way you want. Creating folders is really quite simple.
To create a new folder, just follow these steps:
1. Decide which window you want the new folder to appear in — and then make sure that window is active.
If you want to create a new folder right on the Desktop, make sure that no window is active or that you're working within your Home/Desktop
folder window. You can make a window active by clicking it, and you can make the Desktop active if you have windows onscreen by clicking the Desktop itself.
2. Choose File⇒New Folder (or press Shift++N).
A new, untitled folder appears in the active window with its name box already highlighted, ready for you to type a new name for it.
3. Type a name for your folder.
If you accidentally click anywhere before you type a name for the folder, the name box is no longer highlighted. To highlight it again, select the icon (single-click it) and press Return (or Enter) once. Now you can type its new name.
Give your folders relevant names. Folders with nebulous titles like sfdghb
or Stuff
or Untitled
won't make it any easier to find something six months from now.
For folders and files that you might share with users of non-Macintosh computers, here’s the rule for maximum compatibility: Use no punctuation and no Option-key characters in the folder name. Periods, slashes, backslashes, and colons in particular can be reserved for use by other operating systems. When I say Option-key characters, I’m talking about special-purpose ones such as ™ (Option+2), ® (Option+R), ¢ (Option+4), and even © (Option+G).
Navigating with spring-loaded folders
A spring-loaded folder pops open when you drag something onto it without releasing the mouse button. Spring-loaded folders work with all folder or disk icons in all views and in the Sidebar. Because you just got the short course on folders, subfolders, and various ways to organize your stuff, you’re ready for your introduction to one of my favorite ways to get around my disks, folders, and subfolders.
Here’s how spring-loaded folders work:
1. Select any icon except a disk icon.
The folder highlights to indicate that it’s selected.
2. Drag the selected icon onto any folder or disk icon — but don’t release the mouse button.
• I call this hovering because you’re doing just that: hovering the cursor over a folder or disk icon without releasing the button.
• In a second or two, the highlighted folder or disk flashes twice and then springs open, right under the cursor.
• Press the spacebar to make the folder spring open immediately.
3. After the folder springs open, perform any of these handy operations:
• Continue to traverse your folder structure this way. Subfolders continue to pop open until you release the mouse button.
• If you release the mouse button, the icon you’ve been dragging is dropped into the active folder at the time. That window remains open — but all the windows you traversed clean up after themselves by closing automatically, leaving your window clean and uncluttered.
• If you want to cancel a spring-loaded folder, drag the cursor away from the folder icon or outside the boundaries of the sprung window. The folder pops shut.
Smart Folders
As the late Steve Jobs was fond of saying near the end of his keynotes, “There is one more thing,” and when it comes to folders, that one last thing is the Smart Folder.
A Smart Folder lets you save search criteria and have them work in the background to display the results in real time. In other words, a Smart Folder is updated continuously, so it displays all the files on your computer that match the search criteria at the moment.
So, for example, say you create a Smart Folder that contains all the Rich Text Format files on your computer that you’ve opened in the past two weeks, as shown in Figure 6-18. Or you can create a Smart Folder that displays graphics files, but only the ones bigger (or smaller) than a specified file size. Then all those files appear in one convenient Smart Folder.
The possibilities are endless. Because Smart Folders use aliaslike technology to display items, the actual files reside in only one location: the folder where you originally put them. True to their name, Smart Folders don’t gather the files themselves in a separate place; rather, they gather aliases of files, leaving the originals right where you stashed them. Neat!
Figure 6-18: A Smart Folder that displays only RTF files created in the past two weeks.
Also, because Spotlight (discussed in Chapter 7) is built deep into the bowels of the OS X file system and kernel, Smart Folders are updated in real time and so are always current, even after you’ve added or deleted files on your hard drive since creating the Smart Folder.
Smart Folders are so useful that Apple provides five ways to create one. The following steps show you how:
1. Start your Smart Folder by using any of the following methods:
• Choose File⇒New Smart Folder.
• Press +Option+N.
• Choose File⇒Find.
• Press +F.
• Type at least one character in the Search box of a Finder window.
If you have All My Files selected in the Sidebar, you can’t use the last method, because All My Files is a Smart Folder — one with a weird icon, but a Smart Folder nonetheless.
2. Refine the criteria for your search by clicking the + button to add a criterion or the – button to delete one.
3. When you’re satisfied and ready to turn your criteria into a Smart Folder, click the Save button below the Search box.
A sheet drops down.
4. Choose where you want to save your folder.
While the Save sheet is displayed, you can add the Smart Folder to the Sidebar, if you like, by clicking the Add to Sidebar check box.
5. When you’re finished editing criteria, click the Save button to save the folder with its criteria.
After you create your Smart Folder, you can save it anywhere on any hard drive and use it like any other folder. There’s also an option to display it in your Sidebar, if you want.
If you want to change the criteria for a Smart Folder you created earlier, right-click or Control-click the Smart Folder in the Sidebar and select Show Search Criteria, as shown in Figure 6-19.
Figure 6-19: Right-click or Control-click a Smart Folder in the Sidebar and choose Show Search Criteria.
When you’re finished changing the criteria, click the Save button to resave your folder. Don’t worry — if you try to close a Smart Folder you’ve modified without saving your changes, OS X politely asks if you want to save this Smart Folder and warns that if you don’t save, the changes you made will be lost. You may be asked whether you want to replace the previous Smart Folder of the same name; usually, you do.
Smart Folders (with the exception of the Sidebar’s All My Files, which has its own weird little icon) display a little gear in their center, as shown in Figure 6-19, making them easy to tell apart from regular folders.
Smart Folders can save you a lot of time and effort, so if you haven’t played with them much (or at all) yet, be sure to give ’em a try.
Shuffling Around Files and Folders
Sometimes, keeping files and folders organized means moving them from one place to another. At other times, you want to copy them, rename them, or compress them to send to a friend. These sections explain all those things and more.
Comprehending the Clipboard
Before you start moving your files around, let me introduce you to the Clipboard. The Clipboard is a holding area for the last thing that you cut or copied. That copied item can be text, a picture, a portion of a picture, an object in a drawing program, a column of numbers in a spreadsheet, any icon (except a disk), or just about anything else that can be selected. In other words, the Clipboard is the Mac’s temporary storage area.
Most of the time, the Clipboard works quietly in the background, but you can ask the Clipboard to reveal itself by choosing Edit⇒Show Clipboard. This command summons the Clipboard window, which lists the type of item (such as text, picture, or sound) on the Clipboard — and a message letting you know whether the item on the Clipboard can be displayed.
As a storage area, the Clipboard’s contents are temporary. Very temporary. When you cut or copy an item, that item remains on the Clipboard only until you cut or copy something else, logout, or restart. When you do cut or copy something else, the new item replaces the Clipboard’s contents, and the newcomer remains on the Clipboard until you cut or copy something else. And so it goes.
Icons can’t be cut; they can only be copied or pasted. So when an icon is selected, the Cut command is always gray.
Copying files and folders
One way to copy icons from one place to another is to use the Clipboard. When a file or folder icon is selected, choose Edit⇒Copy (or use its shortcut, +C) to copy the selected icon to the Clipboard. Note that this doesn’t delete the selected item; it just makes a copy of it on the Clipboard. To paste the copied icon in another location, choose Edit⇒Paste (or use its shortcut, +V).
Other methods of copying icons from one place to another include these:
Drag an icon from one folder icon onto another folder icon while holding down the Option key. Release the mouse button when the second folder is highlighted. This technique works regardless of whether the second folder’s window is open. If you don’t hold down the Option key, you move the icon to a new location rather than copy it, as I explain a little later in this section.
When you copy something by dragging and dropping it with the Option key held down, the cursor changes to include a little plus sign (+) next to the arrow, as shown in the margin. Neat!
Drag an icon into an open window for another folder while holding down the Option key. Drag the icon for the file or folder that you want to copy into the open window for a second folder (or other hard disk or removable media such as a USB flash drive).
Choose File⇒Duplicate (+D) or right-click or Control-click the file or folder that you want to duplicate; then choose Duplicate from the contextual menu that appears. This makes a copy of the selected icon, adds the word copy to its name, and then places the copy in the same window as the original icon. You can use the Duplicate command on any icon except a disk icon.
You can’t duplicate an entire disk onto itself. But you can copy an entire disk (call it Disk 1) to any other actual, physical, separate disk (call it Disk 2) as long as Disk 2 has enough space available. Just hold down Option and drag Disk 1 onto Disk 2’s icon. The contents of Disk 1 are copied to Disk 2 and appear on Disk 2 in a folder named Disk 1.
If you're wondering why anyone would ever want to copy a file, trust me: Someday, you will. Suppose that you have a file called Long Letter to Mom
in a folder called Old Correspondence. You figure that Mom has forgotten that letter by now, and you want to send it again. But before you do, you want to change the date and delete the reference to Clarence, her pit bull, who passed away last year. So now you need to put a copy of Long Letter to Mom
in your Current Correspondence folder. This technique yields the same result as making a copy of a file by using Save As, which I describe earlier in this chapter.
Pasting from the Clipboard
As I mention earlier in this chapter, to place the icon that’s on the Clipboard someplace new, click where you want the item to go, and choose Edit⇒Paste or use the keyboard shortcut +V to paste what you’ve copied or cut.
Almost all programs have an Edit menu and use the Macintosh Clipboard, which means you can usually cut or copy something from a document in one program and paste it into a document in another program. Usually.
Moving files and folders
You can move files and folders around within a window to your heart’s content, as long as that window is set to Icon view. Just click and drag any icon to its new location in the window. Some people spend hours arranging icons in a window until they’re just so. But because using Icon view wastes so much screen space, I avoid using icons in a window.
As you probably expect from Apple by now, you have choices for how you move one file or folder into another folder. You can use these techniques to move any icon (folder, document, alias, or program icon) into folders or onto other disks.
Drag an icon onto a folder icon. Drag the icon for one folder (or file) onto the icon for another folder (or disk) and then release when the second icon is highlighted (see Figure 6-20). The first folder is inside the second folder. Put another way, the first folder is a subfolder of the second folder. This technique works regardless of whether the second folder’s window is open.
Figure 6-20: Two ways of putting one folder into another.
Drag an icon into an open folder’s window. Drag the icon for one folder (or file) into the open window for a second folder (or disk), as shown in Figure 6-20.
Selecting multiple icons
Sometimes you want to move or copy several items into a single folder. The process is pretty much the same as it is when you copy one file or folder (that is, you just drag the icon to where you want it and drop it there). But you need to select all the items you want before you can drag them en masse to their destination.
If you want to move all the files in a particular folder, simply choose Edit⇒Select All or press +A. This command selects all icons in the active window, regardless of whether you can see them onscreen. If no window is active, choosing Select All selects every icon on the Desktop.
1. To select more than one icon in a folder, do one of the following:
• Click once within the folder window (don’t click any one icon), and drag your mouse (or keypad) while continuing to hold down the mouse button. You see an outline of a box around the icons while you drag, and all icons within or touching the box become highlighted (see Figure 6-21).
• Click one icon and hold down the Shift key while you click others. As long as you hold down the Shift key, each new icon that you click is added to the selection. To deselect an icon, click it a second time while still holding down the Shift key.
• Click one icon and hold down the key while you click others. The difference between using the Shift and keys is that the key doesn’t select everything between it and the first item selected when your window is in List, Cover Flow, or Column view. In Icon view, it really doesn’t make much difference.
To deselect an icon, click it while holding down the key.
2. After you select the icons, click one of them (clicking anywhere else deselects the icons) and drag them to the location where you want to move them (or Option-drag to copy them).
Figure 6-21: Select more than one icon by clicking and dragging with your mouse (or trackpad).
Playing the icon name game: Renaming icons
Icon, icon, bo-bicon, banana-fanna fo-ficon. Betcha can change the name of any old icon! Well, that’s not entirely true. . . .
To rename an icon, you can either click the icon’s name directly (don’t click the icon itself because that selects the icon) or click the icon and press Return (or Enter) once.
Either way, the icon’s name is selected and surrounded with a box, and you can type a new name, as shown in Figure 6-22. In addition, the cursor changes from a pointer to a text-editing I-beam. An I-beam cursor is the Mac’s way of telling you that you can type now. At this point, if you click the I-beam cursor anywhere in the name box, you can edit the icon’s original name. If you don’t click the I-beam cursor in the name box but just begin typing, the icon’s original name is replaced by what you type.
Figure 6-22: Change an icon’s name by typing over the old one.
Compressing files
Getting rid of icons
To get rid of an icon — any icon — merely drag it onto the Trash icon in your Dock.
Finder⇒Empty Trash: This command deletes all items in the Trash from your hard drive, period.
I’ll probably say this more than once: Use this command with a modicum of caution. After a file is dragged into the Trash and the Trash is emptied, the file is gone, gone, gone unless you have a Time Machine or other backup. (Okay, maybe ProSoft Engineering’s Data Rescue II or some other third-party utility can bring it back, but I wouldn’t bet the farm on it.)
Finder⇒Secure Empty Trash: Choosing this command makes the chance of recovery by even the most ardent hacker or expensive disk-recovery tool difficult to virtually impossible. Now the portion of the disk that held the files you’re deleting will be overwritten with randomly generated gibberish. You’re hosed unless you have a Time Machine or other backup.