Utilities: Your macOS Toolbox

The Utilities folder (inside your Applications folder) is home to another batch of freebies: a couple of dozen tools for monitoring, tuning, tweaking, and troubleshooting your Mac.

The truth is, you’re likely to use only about six of these utilities. The rest are very specialized gizmos primarily of interest to network administrators or Unix geeks who are obsessed with knowing what kind of computer-code gibberish is going on behind the scenes.

Tip

Even so, there’s a menu command and a keystroke that can take you there. In the Finder, choose Go→Utilities (Shift--U).

Activity Monitor is designed to let the technologically savvy Mac fan see how much of the Mac’s available power is being tapped at any given moment.

Even when you’re running only a program or two on your Mac, dozens of computational tasks (processes) are going on in the background. The top part of the window, which looks like a table, shows you all the different processes—visible and invisible—that your Mac is handling at the moment.

Check out how many items appear in the Process list, even when you’re just staring at the desktop. It’s awesome to see just how busy your Mac is! Some are easily recognizable programs (such as Finder), while others are background system-level operations you don’t normally see. For each item, you can see the percentage of the CPU being used, who’s using it (either your account name, someone else’s, or root, meaning the Mac itself), whether or not it’s been written as a 64-bit app, and how much memory it’s using.

Or use the View menu to see views like these:

At the top of Activity Monitor, you’re offered five tabs that reveal intimate details about your Mac and its behind-the-scenes efforts (Figure 12-43):

You use the AirPort Utility to set up and manage AirPort base stations (Apple’s wireless Wi-Fi networking routers).

If you click Continue, it presents a series of screens, posing one question at a time: what you want to name the network, what password you want for it, and so on. Once you’ve followed the steps and answered the questions, your AirPort hardware will be properly configured and ready to use.

This program has a split personality; its name is a description of its two halves:

One of the luxuries of using a Mac that has Bluetooth is the ability to shoot files (to colleagues who own similarly clever gadgets) through the air, up to 30 feet away. Bluetooth File Exchange makes it possible, as described in Via Bluetooth.

Since 2006, Macs have come with Intel chips inside, meaning that Macs and PCs use exactly the same memory, hard drives, monitors, mice, keyboards, networking protocols, and processors. With just a little bit of setup, therefore, your Mac can run Windows and Windows programs!

Think of all the potential switchers who are tempted by the Mac’s sleek looks, yet worry about leaving Windows behind entirely. Or the people who love Apple’s productivity programs but have jobs that rely on Microsoft Access, Outlook, or some other piece of Windows corporateware. Even true-blue Mac fans occasionally look longingly at some of the Windows-only games, websites, or movie download services they thought they’d never be able to use.

Today, there are two ways to run Windows on a Mac:

Both techniques require you to provide your own copy of Windows.

Since Boot Camp comes with the Mac, here’s a quick rundown.

To set up Boot Camp, you need the proper ingredients:

Before you install, Apple strongly recommends that you back up your Mac, make sure it’s running the latest version of macOS Sierra, and acquire the latest version of Boot Camp (visit www.apple.com/support/bootcamp). If you’re using a laptop, plug it in for the surgery.

The step-by-steps for installation are long, and they vary according to your Mac model and whether you’re doing a fresh installation of Windows or upgrading to a newer version.

Fortunately, Apple has written out detailed instructions for you here: https://support.apple.com/en-us/HT201468.

When it’s all over, a crazy, disorienting sight presents itself: your Mac, running Windows. There’s no trace of the desktop, Dock, or menu; it’s Windows now, baby.

Walk through the Windows setup screens, creating an account, setting the time, and so on.

From now on, your main interaction with Boot Camp will be telling it what kind of computer you want your Mac to be today: a Windows machine or a Mac.

Presumably, though, you’ll prefer one operating system most of the time. Figure 12-44 (top and middle) shows how you specify your favorite.

Tip

If you’re running Windows and you just want to get back to macOS right now, you don’t have to bother with all the steps shown in Figure 12-44. Instead, click the Boot Camp system-tray icon and, from the shortcut menu, choose Restart in macOS.

From now on, each time you turn on the Mac, it starts up in the operating system you’ve selected.

If you ever need to switch—when you need Windows just for one quick job, for example—press the Option key as the Mac is starting up. You’ll see something like the icons shown in Figure 12-44 (bottom).

When you’ve started up in one operating system, it’s easy to access documents that “belong” to the other one. For example:

If you use ColorSync, then you probably know already that this utility is for people in the high-end color printing business. Its tabs include these two:

The other tabs are described in ColorSync.

Console is a viewer for all of macOS’s logs—the behind-the-scenes, internal Unix record of your Mac’s activities.

Opening the Console log is a bit like stepping into an operating room during a complex surgery: You’re exposed to stuff the average person just isn’t supposed to see. (Typical Console entries: “kCGErrorCannotComplete” or “doGetDisplayTransferByTable.”) You can adjust the font and word wrapping using Console’s Font menu, but the truth is that the phrase “CGXGetWindowType: Invalid window -1” looks ugly in just about any font!

Console isn’t useless, however. These messages can be of significant value to programmers who are debugging software or troubleshooting a messy problem, or, occasionally, to someone you’ve called for tech support.

For example, your crash logs are detailed technical descriptions of what went wrong when various programs crashed, and what was stored in memory at the time.

Unfortunately, there’s not much plain English here to help you understand the crash, or how to avoid it in the future. Most of it runs along the lines of “Exception: EXC_BAD_ACCESS (0x0001); Codes: KERN_INVALID_ADDRESS (0x0001) at 0x2f6b657d.”

DigitalColor Meter can grab the exact color value of any pixel on your screen, which can be helpful when matching colors in web page construction or other design work. After launching the DigitalColor Meter, just point anywhere on your screen. A magnified view appears in the meter window, and the RGB (red-green-blue) color value of the pixels appears in the meter window.

Here are some tips for using the DigitalColor Meter to capture color information from your screen:

This important program has two key functions:

The following discussion tackles the program’s two personalities one at a time.

When you first open Disk Utility, you see, at a glance, what kinds of files are eating up your disk space (see Figure 12-45).

When you click the name of your hard drive’s mechanism, like “500 GB Hitachi iC25N0…” (not the “Macintosh HD” volume label below it), you see five buttons, one for each of the main Disk Utility functions:

Disk images are very cool. Each is a single icon that behaves precisely like an actual disk—a flash drive or hard drive, for example—but can be distributed electronically. For example, a lot of macOS apps arrive from your web download in disk-image form.

Disk images are popular for software distribution for a simple reason: Each image file precisely duplicates the original master disk, complete with all the necessary files in all the right places. When a software company sends you a disk image, it ensures that you’ll install the software from a disk that exactly matches the master disk.

As a handy bonus, you can password-protect a disk image, which is the closest macOS comes to offering the ability to password-protect an individual folder.

It’s important to understand the difference between a disk-image file and the mounted disk (the one that appears when you double-click the disk image). If you flip back to Downloading Compressed Files and consult Figure 6-2, this distinction should be clear.

You can create disk images, too. Doing so can be very handy in situations like these:

Here’s how to make a disk image.

When you click Save (or press Return), if you opted to create an encrypted image, you’re asked to make up a password at this point.

Otherwise, Disk Utility now creates the image and then mounts it—that is, turns the image file into a simulated, yet fully functional, disk icon on your desktop.

When you’re finished working with the disk, eject it as you would any disk (right-click or two-finger click it and choose Eject, for example). Hang on to the .dmg disk-image file itself, however. This is the file you’ll need to double-click if you ever want to recreate your “simulated disk.”

Grab takes pictures of your Mac’s screen, for use when you’re writing up instructions, illustrating a computer book, or collecting proof of some secret screen you found buried in a game. You can take pictures of the entire screen (press -Z, which for once in its life does not mean Undo) or capture only the contents of a rectangular selection (press Shift--A). When you’re finished, Grab displays your snapshot in a new window, which you can print, close without saving, or save as a TIFF file, ready for emailing or inserting into a manuscript.

Now, as experienced Mac enthusiasts already know, the Mac operating system has long had its own built-in shortcuts for capturing screenshots: Press Shift--3 to take a picture of the whole screen, and Shift--4 to capture a rectangular selection. (See Screen-Capture Keystrokes for all the details.)

So why use Grab instead? In many cases, you shouldn’t. The Shift--3 and Shift--4 shortcuts work like a dream. But there are some cases when it might make more sense to opt for Grab. Here are two:

This little unsung app is an amazing piece of work. It lets you create 2D or 3D graphs of staggering beauty and complexity.

When you first open Grapher, you’re asked to choose what kind of virtual “graph paper” you want: two-dimensional (standard, polar, logarithmic) or three-dimensional (cubic, spherical, cylindrical). Click a name to see a preview; when you’re happy with the selection, click Open.

Now the main Grapher window appears (Figure 12-49). Do yourself a favor. Spend a few wow-inducing minutes choosing canned equations from the Examples menu and watching how Grapher whips up gorgeous, colorful, sometimes animated graphs on the fly.

When you’re ready to plug in an equation of your own, type it into the text box at the top of the window. If you’re not such a math hotshot, or you’re not sure of the equation format, work from the canned equations and mathematical building blocks that appear when you choose Equation→New Equation from Template or Window→Show Equation Palette (a floating window containing a huge selection of math symbols and constants).

Once the graph is up on the screen, you can tailor it like this:

When it’s all over, you can preserve your masterpiece using any of these techniques:

Finally, click Create Animation. After a moment, the finished movie appears. If you like it, choose File→Save As to preserve it on your hard drive for future generations.

Keychain Access memorizes and stores all your secret information—passwords for network access, file servers, FTP sites, web pages, and other secure items. For instructions on using Keychain Access, see The Keychain.

This little cutie automates the transfer of all your stuff from another Mac or even a Windows PC, to your current Mac: your Home folder, network settings, programs, and more. This comes in extremely handy when you buy a newer, better Mac—or when you need Time Machine to recover an entire dead Mac’s worth of data. (It can also copy everything over from a secondary hard drive or partition.) The instructions on the screen guide you through the process (see Appendix A).

Network Utility isn’t actually in your Utilities folder. It now lives in a deeply nested folder where you’d never think to look (System→Library→CoreServices→Applications). But you can quickly find and open it with a Spotlight search, or from within System Information, described below (choose Window→Network Utility).

In any case, it gathers information about websites and network citizens. It offers a suite of standard Internet tools like netstat, ping, traceroute, DNS lookup, and whois—advanced tools, to be sure, but ones that even Mac novices may be asked to fire up when calling a technician for Internet help.

Otherwise, you probably won’t need to use Network Utility to get your work done. However, Network Utility can be useful when you’re doing Internet detective work:

  • Use ping to enter an address (either a web address like www.google.com or an IP address like 192.168.1.110), and then “ping” (send out a “sonar” signal to) the server to see how long it takes for it to respond to your request. Network Utility reports the response time in milliseconds—a useful test when you’re trying to see if a remote server (a website, for example) is up and running. (The time it takes for the ping to report back to you also tells you how good your connection to it is.)

  • Whois (“who is”) can gather an amazing amount of information about the owners of any particular domain (such as apple.com)—including name and address info, telephone numbers, and administrative contacts. It uses the technique shown in Figure 12-50.

    The whois tool is a powerful part of Network Utility. First enter a domain that you want information about, and then choose a whois server (you might try www.whois.networksolutions.com). When you click the Whois button, you get a surprisingly revealing report about the owner of the domain, including phone numbers and contact names.

    Figure 12-50. The whois tool is a powerful part of Network Utility. First enter a domain that you want information about, and then choose a whois server (you might try www.whois.networksolutions.com). When you click the Whois button, you get a surprisingly revealing report about the owner of the domain, including phone numbers and contact names.

  • Traceroute lets you track how many “hops” are required for your Mac to communicate with a certain server (an IP address or web address). You’ll see that your request actually jumps from one trunk of the Internet to another, from router to router, as it makes its way to its destination. You’ll learn that a message sometimes crisscrosses the entire country before it arrives. You can also see how long each leg of the journey took, in milliseconds.

This little program, formerly called AppleScript Editor, is where you can type up your own AppleScripts. You can read about these programmery software robots in the free online appendix to this chapter, “Automator & AppleScript.” It’s available on this book’s “Missing CD” page at www.missingmanuals.com.

System Information (formerly called System Profiler) is a great tool for learning exactly what’s installed on your Mac and what’s not—in terms of both hardware and software. The people who answer the phones on Apple’s tech-support line are particularly fond of System Profiler, since the detailed information it reports can be very useful for troubleshooting nasty problems.

There are actually two versions of System Information: a quick, easy snapshot and a ridiculously detailed version:

When System Information opens, it reports information about your Mac in a list down the left side (Figure 12-52). The details fall into these categories:

Underneath its shiny skin, macOS is actually Unix, one of the oldest and most respected operating systems in use today. But you’d never know it by looking; Unix is a world without icons, menus, or dialog boxes. You operate it by typing out memorized commands at a special prompt, called the command line. The mouse is almost useless here.

Wait a minute—Apple’s ultramodern operating system, with a command line? What’s going on? Actually, the command line never went away. At universities and corporations worldwide, professional computer nerds still value the efficiency of pounding away at the little C: or $ prompts.

You never have to use macOS’s command line. In fact, Apple has swept it pretty far under the rug. There are, however, some tasks you can perform only at the command line.

Terminal is your keyhole into macOS’s Unix innards. There’s a whole chapter on it waiting for you on this book’s “Missing CD” page at www.missingmanuals.com.

For details on this screen-reader software, see Figure 10-4.