Icon Names

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 OS X, icons look more like photos than cartoons, and you can scale them to practically any size.

An 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 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. Or—new in El Capitan—right-click the icon; from the shortcut menu, choose Rename.)

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:

It’s one of OS X’s most useful features, and hardly anyone even knows it exists: You can rename a whole windowful of files at once—numbering them, correcting spelling in dozens of files at once, deleting a certain phrase from their names, and so on.

To perform this kind of simultaneous name surgery, begin by selecting all the files whose names you want to edit, as described in the following section. Then right-click (or two-finger click) any one of them; from the shortcut menu, choose “Rename 12 Items” (or whatever the number is).

Now you get the dialog box shown in Figure 2-3. Its pop-up menu offers three ways to rename the icons en masse:

The batch-renaming feature is delicious and awesome, but there is some fine print. Don’t search-and-replace the file name extensions (like .jpg or .doc); you might not be able to open the files afterward. Don’t rename system files or your Home folder.

And use a shareware program like A Better Finder Rename if you want even more power and flexibility in mass-renaming files.