File Extensions Missing

Many of the files on my computer have mysteriously lost their extensions and now automatically open with Terminal. I have discovered that I can fix them individually by manually adding the extensions to the file name. This is not a great solution, because there are many old files where I do not know or remember the extensions. Also, there are hundreds of files like this and I would like to save myself the time of changing them individually.

Is there a program or method you can suggest to fix this problem? Thank you.

iMac Intel Core i5, Mac OS X (10.6.7)

Posted on Apr 5, 2011 1:11 PM

Reply
5 replies

Apr 5, 2011 1:21 PM in response to EBASJ

You may be able to use this procedure:

1. Select an individual file.
2. Press COMMAND-I to open the Get Info window.
3. In Open With section select the default application you want associated with that file.
4. Click the Change All button.

This will associate that file and similar files to the selected application. You may not need to append a file extension.

However, if this doesn't work then get a utility such as BatchRename'em 1.2 - CNet Downloads or MacUpdate - that you can use to rename files by simply adding an extension to all selected files. That way you could change hundreds of files at once.

Apr 5, 2011 1:33 PM in response to Kappy

Thanks for the suggestions, Kappy. For some reason, the file types say "Unix Executable File," even though I know these files were originally either jpegs, docs, pdfs, etc. If I change the default application to open them, it would apply to all my files without extensions.

Also, I cannot figure out what some of the original file extensions were. Is there a way to recover the original extensions?

Message was edited by: EBASJ

Apr 5, 2011 1:38 PM in response to EBASJ

Here's the thing. Normally, files are created with extensions but the extensions are hidden. If you select a file of a particular type you can use Get Info to change the display from hidden to visible in order to see the file extension. Get Info will actually display the file with its extension. But in the case you describe it sounds like all the file extensions were somehow removed. The result being that OS X treats them as "unknown" which defaults to the Unix executable type. These files now have apparently become associated with the Terminal. There is no simple way to determine what type of file each is nor the application that originally created it. Since the extensions were apparently removed there is no way to recover them.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

File Extensions Missing

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.