Minimize all of a program’s windows
OS X’s window-minimizing feature shrinks an open window and stores it on the right-hand side of your Dock (as long as you haven’t moved the Dock off the bottom of the screen). This is a handy way to leave a window open for future reference without having it take up space on your desktop. There are a couple of ways to minimize a window to the Dock—press 1-M, or just click on the yellow button in the top left corner of an open window. When you need the window again, click on it in the Dock, and it will return to full size.
But what if you want to minimize
of an application’s open windows? Try holding down the option key before clicking on the minimize button (see “Minimize an Application’s Windows”). In most of Apple’s applications and many others—including Adobe Photoshop CS2, Bare Bones Software’s BBEdit, The Camino Project’s Camino, Mozilla Firefox, and The Omni Group’s OmniWeb—this trick will send all of that app’s open windows to the Dock.
When you want the windows back, try option-clicking on any one of the minimized windows in the Dock. Most of the time, they’ll all expand. But there are exceptions—Photoshop and BBEdit, for instance. Experiment with your favorite program before you minimize 20 open windows—and then discover that you have to click on them one by one to expand them again.
Select text with one click
Whether you’re filling in an online form or entering a URL in your browser, it can be a pain to press the tab key repeatedly just to get to a text field and select its contents. Luckily, there’s another way. In nearly all Apple applications, you can click on one of the field’s edges to select all its text.
Hover your cursor over a text field and then move it to the field’s edge—the cursor will change from an I-beam into an arrow. Click when the arrow appears, and you’ll select the contents of the text field. (See a
video of the process.) This trick works in many other applications, too. Just try clicking on the edge of a text box in your favorite program, and see what happens.
Easier zooming via the keyboard
OS X 10.4.8 provides a useful new way to zoom in on your screen—hold down the control key and then scroll with your mouse’s scroll wheel, the Mighty Mouse’s scroll ball, or two fingers on the trackpad of your MacBook or MacBook Pro. The entire screen will zoom at the point where the cursor is. I use this feature quite a bit—for instance, to read a way-too-tiny font on a Web site or to make sure I select just the right area of the screen for a screenshot.
But I don’t enjoy all the scrolling required to return to the 100 percent view. You can simplify matters a bit by going to the Universal Access preference pane, clicking on Seeing, and selecting the On option under Zoom. Then, after zooming in on your screen, you can hold down 1-option-hyphen (-) until the zoom level reaches 100 percent again—though this can be annoying, too (when I’m done zooming, I want to get back to the normal view as quickly as possible).
So here’s a trick: Visit the Universal Access preference pane and click on the Options button in the Zoom section (make sure Zoom is set to On before you click). Now move the Maximum Zoom slider to anything other than the leftmost position (see “Max Zoom”). The value you pick will affect
zooming via the Universal Access keyboard shortcuts—not the control-key shortcut. Click on Done. Now zoom in as normal, and when you’re done, press 1-option-hyphen just once. Voilà! The screen will automatically return to 100 percent resolution.
Tame Address Book’s envelope printing
As of OS X 10.4, Address Book (/Applications) can print envelopes. Select an address in Address Book, select File: Print, set the Style pop-up menu to Envelopes, choose the correct envelope size from the Layout menu, and then click on Print. But using this feature can be very frustrating, as I found out while trying to send my holiday cards.
For example, take one of the program’s potentially cool features—the ability to automatically print a spouse’s name on an envelope. You add a spouse’s name when you’re editing a contact. Click on the pop-up menu below the Work or Home E-mail one and change it from Friend to Spouse. Then type in the spouse’s first and last name. (Don’t see these fields? Click on the Edit button at the bottom of the Address Book window to enter Edit mode.) If you’ve added a spouse’s name, Address Book will insert it in the printed address; for example, when you print an envelope for your contact Sally Sample,
Sally and Steve Sample
will appear. (If the spouse has a different last name, the envelope will be addressed to
Sally Sample and Steve Smith,
The maddening thing is, in my testing, this worked only some of the time. Finding this problem’s cause and solution took some digging. The problem is Address Book’s fuzzy matching of first names. With the preceding example, if you have another Address Book contact for someone named Steve who has a different last name or address, Address Book will omit the spouse name when you print Sally Sample’s entry. Oddly, you won’t encounter this problem if you’ve coded the person as a partner instead of a spouse. But in that case, the envelope will be addressed slightly differently, to
Sally Sample and Steve.
So what’s the solution? If you’re having trouble printing the spouse field, you must also create an Address Book entry for the spouse, and make sure that the address (as well as the last name) exactly matches what’s in the first record. After I’d created an entry for Steve Sample, the envelope turned out right when I printed from Sally’s Address Book record. It’s a pain, but it does work.
Even if the spouse has a card of his or her own, you must use both a first name and a last name in the Spouse field to make this work. If you don’t enter a last name in the spouse field, Address Book will print using the Partner format—with, for example,
at the end. Note that you can use this to your advantage when you want to send cards to the more general
Sally Smith and Family.
in the Spouse (or Partner) field. (Get more
Address Book printing tips
Senior Editor Rob Griffiths runs the
Web site. Kirk McElhearn is the author of many Mac-related books, including
The Mac OS X Command Line: Unix Under the Hood
Minimize an Application’s Windows: Want to minimize all of an application’s windows? Press option while clicking on one window’s minimize button, and they’ll all fly down to the Dock.Max Zoom: To speed your return to the 100 percent view after using the new control-scroll zoom feature, set a maximum zoom level in the Universal Access preference pane.Custom Cards: Address Book can help you print the names of your contacts’ spouses on envelopes.
Tidy up your HTML
If you write HTML by hand, you may already be familiar with Tidy, an open-source program that checks your code; tells you where there are errors; and, in some cases, corrects them. Tidy is available for many platforms, and it’s included in certain text editors, such as Bare Bones Software’s $125
OS X 10.4 includes a command-line version of Tidy, located at /usr/bin/tidy. You can use it to generate cleaned-up versions of HTML, XML, and XHTML files, and you can even convert files between these formats. For example, here’s the command you’d type in Terminal (/Applications/Utilities) to convert HTML to XML and output the results to a new file (press control-D after the output is finished). You would, of course, replace
with the name of your original file and the name of the one you’d like to create:
test.html -output new.xml
If you just wanted to display errors and quit, you’d use this command:
tidy -errors test.html
If you wanted to change all your tags to upper case, you’d enter:
For more on using the command-line version of Tidy, type
in Terminal. If you don’t want to use the command line, and don’t work with BBEdit or another text editor that includes Tidy, you can install
, which adds Tidy’s functionality to your Services menu, for use with Cocoa applications.
However you use it, Tidy will help you not only write correct HTML code but also clean up any unnecessary tags. It can save you time and make your Web pages better and more efficient.
Spotlight on Spotlight
One of OS X 10.4’s most touted features is Spotlight, a constantly updated index of pretty much everything on your Mac. When you first install OS X, Spotlight begins creating its index, and then it updates that index regularly as you add new files to your system. It also indexes
or data about data—for example, the date a picture was taken, the shutter speed used, and so on.
Access Spotlight by pressing 1-spacebar. A search field drops down from the top right corner of the screen. Spotlight goes to work as soon as you begin to type here—even before you press return. Alternatively, you can press 1-option-spacebar to bring up a larger Spotlight search window.
You can find nearly any file, as long as you can remember something about it—say, the title or a key phrase it contains. The more words you’re able to give Spotlight, the more accurate the matches will be. Search for
and you’ll probably get thousands of results. Search for
the yellow submarine,
though, and your results will be much more specific. Spotlight can search iChat transcripts, Mail and Entourage e-mail messages, Address Book contacts, iCal calendar files, Word and Excel documents, and PDF files. It can also search for information in JPEG, PNG, TIFF, and GIF images; MP3 and AAC audio files; and QuickTime movies.
Seek Friendly Programs
Some particularly Spotlight-friendly applications do some work behind the scenes to make it possible to search their files’ content. Take, for example, Delicious Monster’s $40 book- and media-management tool
). After you create your library, you can search for anything in it via Spotlight. A quick search for
Warner Home Video
on my Mac, for instance, found the 23 movies from that studio that I have. If you have a choice, choose programs that help you in this way.
Here’s a list
of more than 50.
Simplify Your Index
Does your Mac contain some things that you don’t want Spotlight to index? For example, I keep a backup of my Current Projects folder on my second internal hard drive. If left alone, Spotlight will find two matches for anything in that folder—one for the original and one for the backup. To tell Spotlight to ignore something, go to Spotlight’s preference pane, click on the Privacy tab, click on the plus sign (+), and navigate to the folder you’d like to exclude.
Jump through Spotlight’s Results As Spotlight finds matches for your search terms, it displays them in a drop-down window below the search box. The results are organized into categories, and you can use the up- and down-arrow keys to move from item to item. To move around in a hurry, though, use 1 and the up- or down-arrow key: pressing 1-down arrow will jump to the first entry in the next category; 1-up arrow will do the same in the previous category. To open a highlighted item, press return.
Customize Spotlight’s Search Data
If you use an application launcher, such as Peter Maurer’s free Butler, Objective Development’s $20 LaunchBar, or Blacktree’s free Quicksilver (see
Launch Your Productivity
), you don’t need to use Spotlight to look for your programs. Take advantage of this fact to eliminate these matches from your search results and speed up Spotlight. Similarly, if you don’t want Spotlight to search your iTunes library (something that launchers do very well), disable those results. Go to Spotlight’s preference pane, click on the Search Results tab, and deselect items you don’t want in your results.