7.1. Moving Data Between documents

 < Day Day Up > 

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 GraphicConverter, and combine a surprising variety of seemingly dissimilar kinds of data.

7.1.1. Cut, Copy, and Paste

The original copy-and-paste procedure of 1984 putting a graphic into a word processorhas come a long way. Most experienced Mac users have learned to trigger the Cut, Copy, and Paste commands from the keyboard, quickly and with out 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 graphics, music, movie, database, and spreadsheet information, depending on the pro gram you're using.

  2. Use the Edit Cut or Edit Copy command .

    Or press the keyboard shortcuts -X (for Cutthink of the X as a pair of scissors) or -C (for Copy). The Macintosh memorizes the highlighted material, socking it away on an invisible storage pad called the Clipboard. If you chose Copy, nothing visible hap pens. 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 Clip board window appears, showing whatever youve copied .

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

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

  4. Choose the Edit Paste 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 movie clip into Quicken.)

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.

GEM IN THE ROUGH
Styled Text

When you copy text from, for example, Microsoft Word, and then paste it into another program, such as Mail, you may be pleasantly surprised to note that the formatting of that textbold, italic, font ( size , color , and so on)appears intact in Mail. You're witnessing one of the Mac's most useful but underpublicized features: its support for styled text on the Clipboard.

Almost all Mac OS Xcompatible programs transfer the formatting along with the copied text. Every time you paste formatted text copied from one of these programs, the pasted material appears with the same typographical characteristics it had in the original program. Over time, this tiny timesaver spares us years ' worth of cumulative reformatting effortyet another tiny favor the noble Macintosh does mankind.


7.1.2. 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 7-1 illustrates how this works.


Note: Most Cocoa programs (Section 5.8) require you to press the mouse button for a split second before beginning to drag. (This delay is shorter in 10.4 than it was in 10.3, however.)

Virtually every Mac OS X program works with the drag-and-drop technique, including TextEdit, Stickies, Mail, Sherlock, QuickTime Player, Preview, iMovie, iPhoto, and Apple System Profiler, not to mention commercial programs like Microsoft applications, America Online, and so on.

7.1.2.1. When to use drag-and-drop

As shown in Figure 7-1, drag-and-drop is ideal for transferring material between windows or between programs. 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.

Figure 7-1. To use drag-and-drop, highlight some material. Click in the middle of the highlighted area; 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 boundariesthe Mac's way of letting you know that it understands your intention . When you release the mouse, the highlighted material appears instantly in its new location.


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


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.
7.1.2.2. 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 7-2, you can drag text, graphics, sounds, and even movie clips out of your document windows and directly onto the desktop. Once there, your dragged material generally becomes an icon called a clipping file .

Figure 7-2. 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, Mac 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).


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 Web page URL, Mac OS X gives it a special icon and a special function: an Internet location file . See Section 19.9 for details.

7.1.3. Export/Import

When it comes to transferring large chunks of informationespecially address books, spreadsheet cells , and database recordsfrom 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 Mac 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 notingit means that your four years' worth of collected addresses in, say, your old email program can find its way into a newer program, like Palm Desktop, in a matter of minutes.

 < Day Day Up > 


Mac OS X. The Missing Manual
Mac OS X Snow Leopard: The Missing Manual (Missing Manuals)
ISBN: 0596153287
EAN: 2147483647
Year: 2005
Pages: 506
Authors: David Pogue

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net