Opening Documents in Mac OS X

Using most applications involves opening documents, and while opening documents using Mac OS X applications is similar to opening documents in applications under previous versions of the OS, there are some substantial differences. Mac OS X offers several features that applications can use to make opening documents faster and easier.

As with previous versions of the Mac OS, there are several ways in which you can open documents:

  • Select the document's icon in a Finder window and choose the Finder's Open command (press graphics/symbol.gif+O).

  • Double-click a document's icon in the Finder.

  • Single-click a document's icon on the Dock.

  • Drag a document icon or alias onto an application's icon or alias (on the desktop, in a Finder window, or on the Dock).

  • Select the document's icon or alias and press graphics/symbol.gif+Down arrow.

  • Open the document using an AppleScript or other macro.

  • Open a compatible application and use its Open command to open a document.

NOTE

If you see the document's icon on the Dock, an alias to that document has been placed there. If you see a thumbnail of the document's window on the Dock, that document is open and its window has been minimized. In either case, single-clicking the icon will cause the document to open so that you can work on it.


Most of these techniques are quite simple. However, because the Open dialog box has changed dramatically under Mac OS X, it is worthy of some attention. Also, you need to understand how you can associate documents with specific applications so you can determine which application opens when you open a document.

Using the Mac OS X Open Dialog Box

As you work with documents and applications, you use the Open dialog box to choose files to open. This process is similar to that under previous versions of the Mac OS, but the specific dialog boxes you use look quite a bit different and they offer different features.

NOTE

Many dialog boxes, although not called Open, are actually the Open dialog box with the name modified to suit the specific purpose at hand. These dialog boxes have names such as Choose a Picture, Choose a File, and so on. However, they all work in basically the same way as and offer similar features to the Open dialog box.


A typical Open dialog box is shown in Figure 6.14.

Figure 6.14. This Open dialog box, from the application TextEdit, is typical of those offered by Mac OS X applications. You navigate the directory structure using the horizontal and vertical scrollbars.

graphics/06fig14.gif

The view of files and folders in the center of the dialog box is just like a Finder window in the Columns view. Each pane of the window shows a different level of hierarchy. Selecting an item in one pane causes the pane to its right to display the contents of the selected item. You can quickly maneuver up and down the directory structure just as you can in Finder windows.

To learn how to navigate in the Columns view, see "Viewing a Finder Window in Columns View," p. 51.

The location shown in the From pop-up menu is the currently selected folder whose contents are displayed in the next column to its right. For example, if Documents is shown in the From pop-up menu, the Documents folder is selected and its contents are displayed in the rightmost pane of the dialog box.

You can use the From pop-up menu to quickly access many areas of your Mac, such as your Documents directory, Desktop, Home directory, Favorites, Recent Places, and even your iDisk (see Figure 6.15).

Figure 6.15. The From pop-up menu in the Open dialog box has several sections from which you can select specific places; notice that your iDisk is a choice on the menu (assuming that you have configured .Mac services on your Mac).

graphics/06fig15.gif

Simply select an item to open it. If it is a folder, that folder will become selected and you will see its contents in the pane to the right of the folder. You can then select a folder or document that it contains. When you select the document you want to open, click Open or press Return to open it.

You can type a pathname to an item you want to select in the Go To box; this works similarly to the Go To Folder command.

To learn how to type paths in the Go To box, see "Changing Directories with the Go Menu," p. 56.

TIP

If you select an item and click the Add to Favorites button, the selected item will be added to your Favorites directory.


The Open dialog box might contain application-specific controls. For example, in Figure 6.11, you saw TextEdit commands to choose the plain text encoding that is used to open a file and to ignore rich text commands. As you locate and open files or documents, you will want to be aware of these additional options and apply them as needed.

Determining the Application That Opens When You Open a Document

As with previous versions of the Mac OS, the system determines which application should be used when you try to open a file (other than when you open a document from within an application using its Open command, of course). Typically, the document's creator opens if it is installed on your Mac, such as Microsoft Word opening a .doc file.

Several factors determine which application opens when you open a document, including the document's file type and creator information, as well as the file's filename extension. Mac OS X does a good job of evaluating these properties to ensure that the correct application opens.

However, there might be times when you want to use a different application than the one the system selects, or you might not have the application that was used to create the document. In such cases, you can choose the application in which a document opens.

You can also change the association for all files of a specific type to determine which application opens when you open any file of that type.

There are two ways to associate document types with the applications used to open them. One is by using the Get Info window; the other is by using a document's contextual menu.

Using the Get Info Window to Associate Documents with an Application

You can use the Open with section of the Info window to determine which application is used to open a file.

  1. Select the document you are interested in and press graphics/symbol.gif+I. The Info window will appear.

  2. Expand the Open with section. The application the document is currently associated with is shown on the pop-up menu. The associated application is called the default application the text (default) appears after the application name.

  3. Open the pop-up menu. You will see all the applications that the system recognizes as being able to open the document, along with the Other selection (see Figure 6.16). The upper section of the menu lists Carbon and Cocoa applications, whereas the lower section lists Classic applications.

    Figure 6.16. This menu lists all the applications Mac OS X thinks you can use on the document; its choices don't always work well.

    graphics/06fig16.jpg

  4. If one of the listed applications is the one you want to associate with the document, choose it on the menu. The document will be opened with that application the next time you open it.

  5. If you want to select an application that is not shown on the pop-up menu, choose Other. You will see the Choose Other Application dialog box (see Figure 6.17).

    Figure 6.17. You can use the Choose Other Application dialog box to select applications to open a document, even if Mac OS X doesn't recommend them.

    graphics/06fig17.jpg

    The Choose Other Application dialog box moves to the Applications directory automatically, and by default, it shows you only the recommended applications, which are those that Mac OS X recognizes as being compatible with the document. This set of applications might or might not be the same as you saw on the pop-up menu in the Info window. Mac OS X recognizes that some applications that can open files of that type might not really be intended to work with files of that type and so doesn't show them in the pop-up menu. However, they might be active in the Choose Other Application dialog box. Applications that Mac OS X doesn't think can be used at all are grayed out.

  6. To make all applications active, choose All Applications from the Show pop-up menu.

  7. Use the dialog box's controls to move to the application you want to select, select it, and click Add. After you click Add, you will return to the Info window and the application you selected will appear in the window. That application will be used the next time you open the file.

CAUTION

Just because you told Mac OS X to use a specific application, even if it is one that Mac OS X recommended, that doesn't mean that you will actually be able to open the document with the application you select. If you try to open the document and generate error messages, you need to go back and select an application that can handle the type of file you are working with.


If you choose an application that Mac OS X isn't sure can open files of the selected type, you will see a warning saying so in the dialog box after you select the application. You can proceed even when you see the warning, but you might get unexpected results.

TIP

Even though Mac OS X tries to recommend applications that are appropriate for the selected document, it doesn't always do a great job. For example, it doesn't usually list a Classic application even when that application is the best choice for the selected document. In those situations, use the All Applications command on the Show pop-up menu to add the application you want to use for the document.


You can also use the Info window to associate all files of a specific type with an application.

  1. Use the previous steps to associate a file of the type you want to associate with an application. After you have changed the application association, the Change All button will become active.

  2. Click the Change All button. You will see a warning dialog box that explains what you are about to do; for example, it lists the document types you are changing and the application with which you will associate documents of that type (see Figure 6.18).

    Figure 6.18. This warning dialog box provides the information you need in order to make sure that the file association you are creating is the correct one.

    graphics/06fig18.jpg

  3. If you are sure that you want to make the change, click Continue. All files of the selected type will become associated with the application you selected. The application you selected will become the default application for all documents of that type.

Using a Contextual Menu to Open a Document with a Specific Application

You can also use a file's contextual menu to determine which application is used to open it.

  1. Select a document that you want to open with a specific application.

  2. Hold down the Control key and click to open the contextual menu.

  3. Choose Open With. Another menu will appear that lists all the applications that the system recognizes as being compatible with the document you are trying to open. The application that is currently associated with the document is marked as the default (see Figure 6.19).

    Figure 6.19. This menu provides the same controls as the Open with section of a document's Info window.

    graphics/06fig19.jpg

  4. Choose the application you want to open the document with from the list. If you want to use an application that is not on the list, choose Other and use the Choose Other Application dialog box to move to and select the application you want to use. (See the preceding section for detailed information on how this dialog box works.) The document will open in the application you selected.

When you use this technique, the document will be associated with the application only if you save the document from within that application. If you simply open it and view it, the previous application will continue to be associated with the document.

If you want the file to always be opened with a different application, even if you don't make any changes to it, open the contextual menu and then press the Option key. The Open With command will become the Always Open With command. After you choose an application, the file will be associated with that application and will always open in it.

NOTE

Note that setting an application for all files with a specific type and creator combination does not override any documents for which you have set a specific application. For example, suppose that you set the application to use for a specific document. Then, using another document, you change the application used for documents of that type and creator to be a different application. The first document would still open with the specific application you selected previously.


Using Filename Extensions to Associate Documents with Applications

You can also try to change the application associated with a specific document by changing the document's filename extension. For example, to associate QuickTime Player with a document, you would change its extension to .mov. When you do so, the file's icon might change to reflect that extension, and the document will open with the application that extension is associated with. But this doesn't always happen.

  1. Edit the filename extension of the file you want to associate with an application so that the extension is unique to that application. For example, you can change the .rtf to .doc to associate a file with Microsoft Word.

    The filename extension you use must be specific to an application for this to work. For example, some filename extensions, such as .tiff, can be associated with many different applications. You will have to use the Info window or contextual menu to change the association for such files.

    A warning dialog box will appear (see Figure 6.20). In this dialog box, you will see two buttons. One will keep the file's current filename extension, and other will cause the new one to be used.

    Figure 6.20. When you change a filename extension, you will have to confirm the change by clicking the Use button in a dialog box like this one.

    graphics/06fig20.jpg

  2. Click the Use button. The filename extension will be changed. The file will be associated with the application that is currently associated with files that have the filename extension you chose to use.

Changing the filename extension does not override a selection you have made with the Info window. If you associate an application with a document by using the Info window tools and then subsequently change the filename extensions, the choice you made with the Info window overrides the filename extension and determines the application that is used to open that document.

TIP

To determine the application that is currently the default for a type of file, select the file and press graphics/symbol.gif+I to open the Info window. Then expand the Open with section of the Info window. The application listed as default is the default for that type. If the application currently associated with the file is not the default (the text "default" is not next to the application's name on the Open with pop-up menu), open the pop-up menu. The default application for that type will be shown regardless of whether it is the application currently associated with the file.




Special Edition Using Mac OS X v10. 2
Special Edition Using Mac OS X v10.2
ISBN: 0789729040
EAN: 2147483647
Year: 2005
Pages: 260
Authors: Brad Miser

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