Moving Data Between Documents

You can’t paste a picture into your Web browser, and you can’t paste MIDI music information into your word processor. But you can put graphics into your word processor, paste movies into your database, insert text into Photoshop, and combine a surprising variety of seemingly dissimilar kinds of data.

Cut, Copy, and Paste

The original copy-and-paste procedure of 1984—putting a graphic into a word processor—has come a long way. Most experienced Mac fans have learned to trigger the Cut, Copy, and Paste commands from the keyboard, quickly and without even thinking. Here’s how the process works:

  1. Highlight some material in a document.

    Drag through some text in a word processor, for example, or highlight graphic, music, movie, database, or spreadsheet information, depending on the program you’re using.

  2. Use the EditCut or EditCopy command.

    Or press the keyboard shortcuts ⌘-X (for Cut—think of the X as a pair of scissors) or ⌘-C (for Copy). The Mac memorizes the highlighted material, socking it away on an invisible storage pad called the Clipboard. If you chose Copy, nothing visible happens. If you chose Cut, the highlighted material disappears from the original document.

    At this point, most Mac fans take it on faith that the Cut or Copy command actually worked. But if you’re in doubt, switch to the Finder (by clicking its Dock icon, for example), and then choose Edit→Show Clipboard. The Clipboard window appears, showing whatever you’ve copied.

  3. Click to indicate where you want the material to reappear.

    This may entail switching to a different program, a different document, or simply a different place in the same document.

  4. Choose the EditPaste command (⌘-V).

    The copy of the material you had originally highlighted now appears at your insertion point—if you’re pasting into a program that can accept that kind of information. (You won’t have much luck pasting, say, a block of spreadsheet numbers into World of Warcraft.)

The most recently cut or copied material remains on your Clipboard even after you paste, making it possible to paste the same blob repeatedly. Such a trick can be useful when, for example, you’ve designed a business card in your drawing program and want to duplicate it enough times to fill a letter-sized printout. On the other hand, whenever you next copy or cut something, whatever was already on the Clipboard is lost forever.

Drag-and-Drop

As useful and popular as it is, the Copy/Paste routine doesn’t win any awards for speed. After all, it requires four steps. In many cases, you can replace that routine with the far more direct (and enjoyable) drag-and-drop method. Figure 5-7 illustrates how this works.

Virtually every Apple program works with the drag-and-drop technique, including TextEdit, Stickies, Mail, QuickTime Player, Preview, iMovie, iPhoto, and System Information, not to mention other popular programs like Microsoft applications, Web browsers, and so on.

When to use drag-and-drop

As shown in Figure 5-7, drag-and-drop is ideal for transferring material between windows or between programs—from a Web page into Photoshop, for example. It’s especially useful when you’ve already copied something valuable to your Clipboard, since drag-and-drop doesn’t involve (and doesn’t erase) the Clipboard.

Its most popular use, however, is rearranging text within a single document. In Word or Pages, for example, you can rearrange entire sections, paragraphs, sentences, or even individual letters, just by dragging them—a wonderfully efficient editing technique.

To use drag-and-drop, highlight some material. Click anywhere in the highlighted area and press the mouse button for about half a second. Now, with the button still pressed, drag to another place in the document, into a different window, or into a different application. As your cursor enters the target window, a shaded outline appears inside the window’s boundaries—the Mac’s way of letting you know it understands your intention. When you release the mouse, the highlighted material appears instantly in its new location.

Figure 5-7. To use drag-and-drop, highlight some material. Click anywhere in the highlighted area and press the mouse button for about half a second. Now, with the button still pressed, drag to another place in the document, into a different window, or into a different application. As your cursor enters the target window, a shaded outline appears inside the window’s boundaries—the Mac’s way of letting you know it understands your intention. When you release the mouse, the highlighted material appears instantly in its new location.

Tip

When you use drag-and-drop to move text within a document, the Mac moves the highlighted text, deleting the highlighted material from its original location. If you press Option as you drag, however, you make a copy of the highlighted text.

Drag-and-drop to the desktop

You can also use drag-and-drop in the one program you use every single day: the Finder itself. As shown in Figure 5-8, you can drag text, graphics, sounds, and even movie clips out of your document windows and directly onto the desktop. Graphics and movies generally turn into ordinary graphic or movie files; text becomes an icon called a clipping file.

When you drag material out of the document window and onto the desktop, you get a clipping file. Its icon depends on the kind of material contained within: (from top) text clipping, picture clipping, or movie clipping. (For easy identification, OS X conveniently titles text clippings by the first line of the text contained inside.) You can view a clipping just by double-clicking it, so that it opens into its own window (left).

Figure 5-8. When you drag material out of the document window and onto the desktop, you get a clipping file. Its icon depends on the kind of material contained within: (from top) text clipping, picture clipping, or movie clipping. (For easy identification, OS X conveniently titles text clippings by the first line of the text contained inside.) You can view a clipping just by double-clicking it, so that it opens into its own window (left).

Later, you can examine a clipping’s contents using Quick Look—just select its icon and then tap the space bar. Or you can double-click a clipping file and then select a portion of the text to copy.

When you drag a clipping from your desktop back into an application window, the material in that clipping reappears. Drag-and-drop, in other words, lets you treat your desktop itself as a giant, computer-wide pasteboard—an area where you can temporarily stash pieces of text or graphics as you work.

Tip

When the material you drag to the desktop contains nothing but an Internet address, such as an email address or a Web page URL, it gets a special icon and a special function: an Internet location file. You can stash it in a folder, double-click it for quick access, and so on.

Export/Import

When it comes to transferring large chunks of information—especially address books, spreadsheet cells, and database records—from one program to another, none of the data-transfer methods described so far in this chapter does the trick. For these purposes, use the Export and Import commands found in the File menu of almost every database, spreadsheet, email, and address-book program. (In some programs, the Save As command serves this function.)

These Export/Import commands aren’t part of OS X, so the manuals (if any) of the applications in question should be your source for instructions. For now, however, the power and convenience of this feature are worth noting—it means that your four years’ worth of collected addresses in, say, some old email program can find their way into a newer program, like Contacts, in a matter of minutes.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.177.14