Skip navigation
Currently Being Moderated

The Finder stopped working because of items placed onto the desktop

Level 10 Level 10 (234.445 points)
VERSION 1  Published
Last Modified:  22.02.2011 17:26
Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.


Q. I accidentally dropped one or more items on the Finder's desktop, and the Finder now crashes whenever it tries to display the items on the desktop, or it displays a spinning beachball which never disappears. How do I get the Finder to start working again?

A. This issue can take two forms: a single item with a name the Finder can't handle, or more than approximately 150 items which causes the Finder to hang when it attempts to display them. In either case, copy and paste the following into the address bar of your web browser if you are using Mac OS X 10.3 or newer:

applescript://com.apple.scripteditor?action=new&script=do shell script "mkdir -p ~/Desktop/DesktopItems; mv ~/Desktop/*.jpg ~/Desktop/DesktopItems"

In older versions of Mac OS X, or if the first method doesn't work, restart with the Command and S keys held down, and enter the following:

mount -uw /
cd /Users/username/
mkdir -m 777 -p Desktop/DesktopItems
mv Desktop/*.jpg Desktop/DesktopItems
exit

Replace .jpg in the commands with the filename extension of the item or items which were placed onto the desktop; this can be done before or after pressing Enter in the address bar with the first method, but must be done before pressing Enter after the fourth line in the second case. In the second case, replace username in the second line with the name of the home folder; if this is outside of /Users/, the whole path needs to be changed. The command considers case when it is run, so you will need to ensure that spacing and capitalization is correct. If files with different extensions were dropped onto the desktop, multiple runs of the command will be needed. After performing the first set of instructions if applicable, hold down the Option key while control-clicking the Finder's icon on the Dock and choose Relaunch from the menu which appears, or choose Force Quit from the Apple menu, select the Finder in the list, click Relaunch, and confirm your action.

If you're not sure what the extension for a specific item is, run 'do shell script "ls ~/Desktop"' in the Script Editor, or ls /Users/username/Desktop/ from Single User mode, and look through the list of results; the extension will be the text after the last period of that entry in the list. If the item has no extension, delete the text after the * up to but not including the following space.

When done, go through the folder named DesktopItems on the desktop for items you want to keep, drag those back to the desktop or another location inside your home folder, and then throw the DesktopItems folder away.

(21172)

Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in this User Tip. Apple encourages you to first seek a solution at Apple Support. Any links in this user tip are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use this user tip at your own discretion.
Comments (0)

Actions

Bookmarked By (0)

More Like This

  • Retrieving data ...
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.