4

When I create a folder and name it "test.tmp" the finder asks me if I want to add the file extension ".tmp" to my folder. When accepted, the folder changes to a document with an icon.

I then can no longer open the 'folder' by double clicking on it. There is no default application associated to open the test.tmp file.

If I run ls -l the file is still shown as a directory.

On another Mac I am able to create this same folder name, and the folder remains a folder.

Any idea why on my Mac adding the .tmp changes the folder to a file?

TIA.

  • If you remove all the dots in the name it should revert to folder – MicroMachine Dec 20 '16 at 3:52
2

Folders can have a suffix too. If your OS X System knowns the file extension, it will change the icon (after renaming) and link it to the App that can handle that extension (and is set as default App to open those file types).

The folder then becomes a package or container, where you cannot easily look inside by browsing in finder. But you can right-click on it and choose "Show Package Contents" to see what is inside.

show inside with "Show Package Contents"

Sometimes the (folder-) file extension is hidden by System Default (as for iPhoto Library containers).

  • Since the .tmp file extension does not show a default app, it seems that the OS X System has a use for temporary folders. – user71997 Mar 4 '14 at 18:24
  • @pknz which OS X System version is affected? – user71997 Mar 4 '14 at 18:25
  • I am running 10.8.5. – pknz Mar 4 '14 at 19:56
-1

Was able to resolve this issue from information here.

Basically associate the file extension with another app, ie Calculator, then clear the associated by running this command in Terminal:

`locate lsregister` -u /Applications/Calculator.app

followed by:

xattr -d com.apple.ResourceFork *file_which_won't_open*

This clears the extended attributes on the file.

Full details below:

http://reviews.cnet.com/8301-13727_7-57326949-263/how-to-clear-custom-application-associations-in-os-x/

  • 2
    Answers on Ask Different need to be more than just a link. It's okay to include a link, but please summarize or excerpt it in the answer. The idea is to make the answer stand alone. – nohillside Mar 4 '14 at 18:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .