As you know, the essence of using a computer is running programs, which often produce documents. In OS X, however, there’s a third category: a set of weird, hybrid entities that Apple calls widgets. They appear, all at once, on a virtual desktop—the leftmost of the ones in Mission Control.
Figure 4-12. When you summon the Dashboard, you get a fleet of miniprograms that convey or convert all kinds of useful information, on a Spaces screen all their own. You get rid of Dashboard either by pressing the same key again (F4 or whatever), by swiping three fingers to the right on your trackpad, or by clicking anywhere except on a widget.
If your F4 key bears the Dashboard logo (), press it.
Note
On the very newest Macs, F4 bears a Launchpad icon () instead. On the very oldest Mountain Lion–capable Macs, the Dashboard keystroke is usually F12. Or, on laptops where F12 is the key, you have to hold down the Fn key (lower-left corner).
In all of these cases, you can change the Dashboard keystroke to whatever you like, as described below.
Swipe with three fingers on your trackpad, repeatedly, if necessary, until you reach the far left “desktop.” (On the Magic Mouse, swipe with two fingers.)
Open Mission Control; click the Dashboard thumbnail at the top left of the screen.
Dashboard is an actual program, with an icon of its own in your Applications folder. You can open it with a double-click, or by using any of the usual program-opening tricks.
In any case, you now see the display shown in Figure 4-12. Welcome to the Dashboard.
What are these things, anyway? They’re not really programs, because they don’t create documents or have Dock icons (although Dashboard itself has a Dock icon). They’re certainly not documents, because you can’t name or save them. What they most resemble, actually, is little Web pages. They’re meant to display information, much of it from the Internet, and they’re written using Web programming languages like HTML and JavaScript.
There’s a Calculator, a World Clock, a Tile Game, a Movies listing, and so on. (On this book’s “Missing CD” page at www.missingmanuals.com, you can find a bonus PDF appendix that describes each one in detail.)
Mastering the basics of Dashboard won’t take you long at all:
To move a widget, drag it around the screen. (Click anywhere except on a button or a control.)
To close a widget, press the Option key as you move the mouse across the widget’s face. You’ll see the button appear at the widget’s top-left corner; click it.
To open a closed widget, click the big button at the bottom of the screen. Now the Widget browser appears (Figure 4-13), as described in the following section. Open the widget you want by clicking its icon.
To hide one of Apple’s widgets, or to delete one you’ve installed yourself, use the Widget browser described next.
The Widget browser screen appears when you click the big button at the bottom of Dashboard. As shown in Figure 4-13, it’s simply a master collection of every widget on your Mac, even the ones that you haven’t dragged onto the main Dashboard screen. Its goal in life: managing all your other widgets.
This browser works exactly like the Launchpad. For example, you can move widget icons around by dragging them. Drag one widget’s icon on top of another to create a folder. Search them using the box at the top of the screen. Start them wiggling, for ease of mass deletion, by holding your cursor down on any icon or clicking the big button. For details, read pages Redesigning the Launchpad Screens–Deleting App Store Apps again, taking care to mentally substitute the word “widget” for the word “app.”
Note
Even in wiggling-icon mode, you’re not allowed to delete Apple’s widgets—only ones you’ve downloaded and installed yourself.
But what you’ll do here most often is simply click a widget’s icon to install it onto the main Dashboard screen.
(To close the browser without pulling a new icon out of it, click anywhere on the background.)
The Widget browser also harbors the godlike power of the More Widgets button, described later in these pages.
Dashboard is crawling with cool tips and tricks. Here are a few of the biggies:
To refresh a certain widget—for example, to update its information from the Internet—click it and press ⌘-R. The widget instantly twist-scrambles itself into a sort of ice-cream swirl (you’ve got to see it to believe it) and then untwists to reveal the new data.
You can open more than one copy of the same widget. Just click its icon more than once in the Widget browser. You wind up with multiple copies of it on your screen: three World Clocks, two Stock Trackers, or whatever. That’s a useful trick when, for example, you want to track the time or weather in more than one city, or when you maintain two different stock portfolios.
If you keep the Shift key pressed when you click the big button, the Widget browser fades in in gorgeous slow motion. Aren’t you just glad to be alive?
To change the Dashboard keystroke to something other than F4 or F12, choose →System Preferences, and then click Mission Control.
Here you’ll discover that you can choose almost any other keyboard combination to summon and dismiss the Dashboard, or even choose a screen corner that, when your mouse lands there, acts as the Dashboard trigger. This works exactly as described on Creating a Web Clips Widget.
The best part of the Dashboard is that it’s expandable. Thousands of new widgets, written by other people, are available on the Web: games, chat and email notifiers, gas-price reporters, calculators and translators, news and sports updaters, finance and health trackers, and on and on.
To see Apple’s current list of goodies, use one of these tactics:
Either way, you go to the Apple Dashboard downloads page. Some of the most intriguing widget offerings include the Yahoo Local Traffic widget (gives you the traffic conditions in your area), Air Traffic Control (identifies wireless AirPort base stations within range of your laptop), and TV Tracker (shows what you could be watching on TV right now instead of working). There are also FedEx package trackers, joke-of-the-day widgets, comic-strip-of-the-day widgets, and many other varieties. (See Figure 4-14.)
Figure 4-14. Not all good things come from Apple. Here’s a representative sample of widgets written by other people. Clockwise from top left: Facebook Alert, Dashboard Aquarium, Scenario Poker, and Dancing Gingerbread Man.
When you download a widget, OS X asks if you’re sure you want to install it; if you confirm, OS X downloads it and then displays it proudly in the Widget browser. Click it to open. (Behind the scenes, it’s been copied into your Home→Library→Widgets folder. Only you will see that Dashboard widget, because it’s been copied into the Widgets folder of your account. Anyone else who has an account on this Mac won’t see it.)
You don’t have to be satisfied with Apple’s widgets or the several thousand that other people have written. You can make a Dashboard widget of your own—in about three clicks.
Web Clips exploit an inescapable characteristic of widgets: An awful lot of them exist to deliver real-time information from the Web: weather widget, stocks, flights, and so on.
But what if your interest isn’t snowstorms, stocks, or sports? What if it’s The New York Times front page? Or the bestselling children’s books on Amazon? Or the most-viewed video on YouTube? Or some cool Flash game?
That’s the beauty of Web Clips, a joint venture of Dashboard and the Safari Web browser. They let you turn any section of any Web page into a Dashboard widget that updates itself every time you open it. It’s like having a real-time keyhole peek at all your favorite Web sites at once.
Here’s how you go about creating a do-it-yourself widget:
In Safari, go to the Web page that contains the information you want to snip. Choose File→Open in Dashboard.
The screen goes dark, with only a small window of white. As you move your cursor around the page, the white rectangle conveniently snaps to fit the various rectangular sections of the page (Figure 4-15).
Your job is to make a frame around the part of the page that usually shows the information you want. If the Web site ever redesigns its pages, it’ll wreck your widget—but what the heck. It takes only 5 seconds to make it again.
Figure 4-16. Top: Click a frame style to give your widget better-looking edges. If the widget plays sound, it keeps playing sound when you close the Dashboard unless you turn on “Only play audio in Dashboard.” Bottom: Click Edit to return to the front of the widget, where you can adjust its position on the underlying Web page.
Adjust the corner or side handles to enclose the piece of page you want. When you’re finished, click Add or press Return.
Now Dashboard’s Widget browser opens automatically. But wait—what’s this? There’s a new widget here that wasn’t here before.
At this point, you can dress up your widget, adding a little polish to this raw clipping you’ve ripped out of a Web page. Click the button that appears when you move your mouse to the lower-right corner. The widget flips around to reveal the controls shown in Figure 4-16.
Here you can click one of the frame styles to give your widget a better-looking border.
If you click Edit, the widget flips around to face you again, and here’s where it gets weird: You can reposition your widget’s contents as though they were a window on a Web page that’s visible behind it. Drag the widget contents in any direction within the frame, or resize the frame using the lower-right resize handle. Click Done.
You can make as many Web Clips widgets as you want.
But here’s a big screaming caution: If you close one of these homemade widgets, it’s gone forever (or at least until you recreate it). Web Clips are never represented as icons on the Widget bar, as ordinary widgets are. Ah, well—easy come, easy go, right?
Get Switching to the Mac: The Missing Manual, Mountain Lion Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.