Home > Articles > Home & Office Computing > Mac OS X

This chapter is from the book

This chapter is from the book

Finder File Operations

Because you're reading an Unleashed title, you probably already know the basics of most graphical operating systems: click and drag files to move them, double-click applications to launch them. Mac OS X doesn't break any new ground in the handling of files. Everyone who has used Windows, KDE/GNOME, or an earlier version of Mac OS will be able to carry their existing knowledge over to the new operating system. To be thorough, this portion of the chapter will serve as a quick reference to standard file and application operations.

Moving Files and Folders

Moving a file changes its location, but does not alter the contents of the file or its creation and modification dates. To move a file on Mac OS X, drag its icon to the folder or location where you want it to reside. If you are dragging within a Finder window, the window will automatically scroll as your cursor reaches the border, allowing you to move around within the view without having to drop the icon and manually scroll the window.

Using the Spring-loaded folder feature of Mac OS X 10.2, you can drag items onto closed folders, and after a few seconds, those folders will "spring" open, allowing you to continue the drag operation. To force the "spring" action to occur immediately, press the spacebar while hovering over the folder you want to open.

NOTE

Mac OS X 10.2 also includes "Spring-loaded windows." Spring-loaded windows will "spring" onto the screen when an icon is dragged over them. To demonstrate this effect, drag a Finder window to the bottom of your screen until only the title bar is showing. Next, drag an icon over the title bar—the window will spring up from the bottom of the screen, and then disappear when you release the item or move your mouse off the window. You can force a window to "spring" immediately by pressing the spacebar.

If you are attempting to move a file from one device (such as a disk) to another, the file will be copied instead of moved. The original file will stay in its current location, and a new version will be created on the other storage media. You must delete the original copy of the file if you do not want to keep multiple versions of the file.

TIP

Finder (and some application) windows include a proxy icon in the title bar. If you click and hold this miniature icon for a few seconds, it becomes draggable. The icon represents the currently open folder or document and can be used just like dragging the item's icon within the Finder window.

Copying Files and Folders

Copying a file creates an exact duplicate of an original file. The new file sports a new creation and modification date, although the contents are identical to the original. There are a number of ways to create a copy on Mac OS X.

Drag a file to a different disk—Dragging a file to a disk other than the one it is currently stored on will result in a copy of the file being created at the destination. The copy will have the same name as the original.
Drag a file while holding down Option—If you drag a file to a folder on the same disk it is currently located on while holding down the Option key, a duplicate of that file will be created in the new location. If the Option key is not held down, this will normally just move the file. The copy will have the same name as the original.
Choose Duplicate from Contextual/Finder menu—If you want to create an exact duplicate of a file within the same folder, highlight the file to copy, and then choose Duplicate from the Finder's File menu (Command+D). Or, alternatively, Control-click the icon and choose Duplicate from the pop-up Contextual menu. A new file will be created with the word copy appended to the name.
Use the Finder Contextual Menus—Control-click on a Finder icon (or selection of multiple icons); then choose Copy. Next, locate where you'd like to copy the files to and then choose Paste from the Edit menu. Windows users will recognize this immediately.

TIP

Mac OS X recognizes many two-button mice and automatically maps the second button to the Control-click command. Additionally, many mice that include scroll-wheel functionality will automatically work in Cocoa-based applications.

In addition, the scroll wheel on many mice can be used to control the scrolling of windows. If you have this feature, you can also scroll horizontally by holding down the Shift key while using your scroll wheel.

As the file copies, the Finder will display a window, like that in Figure 3.17, where you can see the progress of the copy operation. If multiple copies are taking place at the same time, the status of each operation will be shown stacked on one another in the copy status window. There are two copies taking place in Figure 3.17. If you'd like to collapse the copy to show only summary information about the copy (time remaining), click the disclosure triangle at the left of the copy status.

Figure 3.17Figure 3.17 A single window contains all the status information for multiple copy operations.

If you attempt to copy over existing files, the Finder will prompt you whether you want to replace them, and provide a check box Apply to All to apply your decision to any other conflicting files it finds during the operation. Remember that under Mac OS X, you cannot alter certain system files and directories or another user's files. If you attempt to replace existing files to which you do not have access, the copy operation will fail.

Deleting Files and Folders

Deleting files and folders permanently removes them from your system. Although the Mac OS X Finder has a new Undo menu, it cannot undo the effects of erasing a file from your system. Like copying a file, there are a number of ways to delete:

Drag to Dock trash—Dragging an icon from a Finder window into the Dock's trash can is one of the most obvious and easy ways to get rid of a file.
Move to Trash Contextual/Finder menu—You can move a selected item to the trash by Control-clicking the icon and choosing Move to Trash from the Contextual menu, or choosing the option of the same name from the Finder's File menu.
Finder Toolbar—A Delete shortcut can be added to the Finder's toolbar. Any items selected can be quickly moved to the trash by clicking the Delete shortcut. Delete is not one of the default toolbar icons.

Moving an item to the trash does not delete it permanently from your drive. Instead, it places the item inside an invisible folder called .Trash—you cannot see or access this folder directly from the Mac OS X GUI. If you're interested in getting to the contents of the folder, check out the discussion of command-line navigation, starting in Chapter 12. The trash can icon in the Dock fills with crumpled paper when it contains items waiting to be deleted.

Although Mac OS X doesn't give you a true representation of the .Trash folder, it does let you view the contents of the trash by clicking the trash can icon. The Trash window works identically to other Finder windows. If you want to rescue a file you've accidentally sent to the trash, you can drag the file's icon out of the trash.

To completely remove a file from your system, choose Empty Trash from the Finder's application menu, or press Shift+Command+Delete. Alternatively, you can Control-click or click and hold on the trash can, and choose Empty Trash from the resulting pop-up menu. Holding down Option when Emptying the Trash (including via the keyboard shortcut) will bypass the Finder's warning messages.

Emptying the trash might take a few moments if you are deleting a large number of files. During this time, the Finder will bring up a dialog box very similar to the Copy dialog box. You can click Stop to cancel the trash operation, sparing the files that haven't yet been erased.

Creating Aliases

An alias is a representation of a file that, for all intents and purposes, appears to be the file. Windows users will recognize it as being similar to a shortcut.

Suppose that you have a document called My Diary buried deep in your drive, but you want to leave a copy of the icon on your desktop. Rather than duplicating the file and maintaining two copies, you can create an alias of the original file, and then place the alias wherever you'd like. Accessing the alias is the same as accessing the real file. The Finder uses aliases for things like Recent Folders and Favorites. Rather than having to move the real directories, it can just create aliases of them. You can tell an alias from the original by the arrow in the lower-left corner of the icon. Figure 3.18 shows the Favorites folder, filled with aliases to other folders.

Figure 3.18Figure 3.18 Aliases represent real files on your system.

There are two ways to create aliases:

Drag a file while holding down Option+Command—If you drag a file to a folder while holding down the Option+Command keys, an alias of that file will be created in the new location.
Choose Make Alias from Contextual/Finder menu—If you want to create an alias of a file within the same folder, highlight the file to alias, and then choose Make Alias from the Finder's File menu (Command+L), or Control-click the icon and choose Make Alias from the pop-up Contextual menu. A new file will be created with the word alias appended to the name.

Although aliases can be used to represent the original file, throwing them away does not delete the original file. Alternatively, deleting the original file doesn't delete the alias. If the original file is erased, the alias simply becomes broken. Double-clicking a broken alias will display a dialog similar to the one in Figure 3.19.

Figure 3.19Figure 3.19 Broken aliases can be deleted or fixed.

If you'd just like to get rid of a broken alias, click the Delete Alias button. If you want to point the alias to a different file, choose Fix Alias, locate the file you want to use, and the alias will be reattached. To leave things the way they are, click OK.

NOTE

Aliases aren't quite the same as symbolic links in Linux. The Mac file system assigns a unique identifier to each file. Aliases reference that identifier and can be used to locate a file wherever it is on your drive. If the original is moved, the ID does not change, and the alias continues to work. Aliases do not translate to the BSD subsystem in any form.

Show Original

To locate the file to which an alias points, select the alias and choose Show Original (Command+R) from the Finder's File menu for the icon's contextual menu. The original file will be highlighted in the Finder.

Launching Applications/Documents

We're saving the easiest for last. Launching an application is a matter of double-clicking its icon, or dragging a document on top of the application's icon. In the latter case, the application will start and load or process the document that was dropped on it.

You can also launch an application by selecting it, and then choosing Open from the Finder's File menu or from the contextual menu. If you're opening a document and would like it to load into an application other than its default application, use the File menu's Open With option. To set a file to always open with an alternative application, hold down Option and the Open With selection will change to Always Open With.

NOTE

If you use a Contextual menu to open an application, you might notice a Show Package Contents selection in the menu as well. Only available on certain applications, this will effectively open the application as if it were a folder, showing the various resources (images, sounds, and so on) that the application uses. You'll find out more about this in Chapter 11, "Additional System Components."

While an application is launching, its icon will bounce in the Dock.

Unrecognized Files

If you attempt to double-click a document that the system does not recognize, Mac OS X will warn you that there is no application available to open the document you've tried to access, as demonstrated in Figure 3.20. If you're sure that a program on your system is capable of viewing the file, select the Choose Application... button. You will be prompted to choose the application that will open the file. If the system does not allow you to pick the appropriate application, change the selection in the Show pop-up menu to read All Applications rather than Recommended Applications. By default, the system tries to guess the best app for the job—sometimes it fails miserably.

Figure 3.20Figure 3.20 If a file can't be opened, you can choose an application to open it with.

You can also fix unrecognized files by setting the application to open them through the Get Info Finder command, discussed later in this chapter.

Renaming Files

To rename a file in the Finder, click on the file's icon label. The filename will become editable in a few seconds. If you're the impatient sort, just press Return after selecting an icon; you'll immediately find yourself in edit mode.

Alternatively, you can use the Get Info option in the Finder File menu to edit the name in a larger field.

The Edit Menu

The Edit menu is used universally in almost every application that you'll run under Mac OS X. It has been duplicated on Linux, Windows, and just about every other GUI-based OS on the planet. The Edit menu allows a user to quickly select, copy, and cut information from one place in the system and paste it somewhere else. While the information is waiting to be added to another document, it is temporarily housed in what is called the Clipboard.

Mac OS X has six basic features available from the Finder's Edit menu:

Undo/Redo—The Undo command was introduced with Mac OS X. It allows you to reverse just about any action you've taken in the Finder, aside from emptying the trash. If you've moved a file or created a copy you don't need, just undo it. If you find that you've undone something you didn't mean to, the Undo menu will change to Redo—effectively enabling you to undo your undo. Although useful, this command has little in common with the other Edit menu options (Command+Z).
Cut—Cuts a piece of information (text, graphic, sound, and so on) from a document. The information is removed from the current file and placed in the Clipboard for reuse (Command+X).
Copy—Like Cut, but leaves the information in the original document and creates a copy of the data within the system Clipboard. If Copy is chosen when a Finder icon is selected, that file is prepared for duplication. The process is completed by choosing Paste (Command+C).
Paste—Pastes the contents of the clipboard back into the frontmost document or field. If the receiving element cannot handle the type of data you are attempting to paste (pasting a sound into a text field, for example), the Paste operation will fail. If you've previously used Copy while a Finder file icon was selected, the file will be copied to the location represented by the currently active Finder window (Command+V).
Select All—Highlights all selectable items within a window or document (Command+A).
Show Clipboard—Choosing Show Clipboard will display a small Finder window with the data that has been cut or copied from an application. Restarting your computer or logging out will lose the contents of the Clipboard.

NOTE

The Edit menu works to cut and copy information between native Mac OS X applications and applications running in the Classic environment. Unfortunately, the integration between these two effectively separate operating systems is such that you might need to wait a second or two between a cut/copy and a paste for the information to find its way to the appropriate destination.

Performing File and Content Searches

In addition to organizing your files, the Finder enables you to find applications by filename or documents by filename or their contents. But the best part is that the search results are interactive. You can launch located programs and applications by double-clicking their icons in the results pane. Also, dragging a file or folder to the Desktop or a Finder window moves that object to a new location. This is a quick way to clean up when you've accidentally saved a file to the wrong folder.

The Finder window provides a quick means of performing a name-search. To do this, open a Finder window by double-clicking on the folder or drive containing the file you want to find and switch to toolbar mode if you aren't in it already. Type your search term in the Search field in the toolbar and press Return. After a few seconds the search results are displayed within your window. To return to the file listing you were viewing before the search, use the toolbar's Back arrow.

If you'd like to do a search of file contents or search more attributes than a simple filename, choose Find (Command+F) from the File menu. Using the Search In pop-up menu, choose where the search will take place:

  • Everywhere—Examines all drives and user accounts.

  • Local Disks—Examines only the current drive, but all user accounts.

  • Home—Examines only the Home directory of the person currently logged in.

  • Specific Places—Displays a list of available drives for you to choose. You can also click the Add/Remove button to insert or remove specific folders.

Pick whether to search for filenames, contents, or both. Enter your search text into the appropriate field(s). If you'd like to add additional search terms in these categories, click the "+" buttons beside the fields to add additional conditions, or the "-" button to remove them. Use the comparison pop-up menu to choose what determines a file "match"—such as "contains", "starts with", or "ends with" the given text.

If you'd like to refine your search further, click the Add Criteria pop-up for setting options, including Date Modified, Date Created, Kind, and Extension. The additional search parameters will appear below the filename and content search boxes, again followed by "-" and "+" buttons to remove them or add additional variations.

Finally, click the Search button to start the search.

In a few moments, the search results are displayed, as seen in Figure 3.21.

Figure 3.21Figure 3.21 Search directly within the Finder interface.

NOTE

If the search is taking too long, click the X button in the search window (or the Finder window's Search field) to stop searching. When displaying search results, the X button changes to "chasing arrows" allowing you to refresh the list.

For each result, Find lists the filename, the date it was modified, its size, and the kind of file. After an item has been highlighted, its path is shown in the details pane at the bottom of the window. Double-clicking will open the file, folder, or application.

NOTE

Searching for file contents requires that the directory containing the file be indexed, or cataloged. You can index a folder, or check for the last date of last indexing, using the Get Info panel.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020