Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using TextMate and each time I edit a file, a copy like ._*file* is created.

This is driving my crazy and last time it create a serious problem on some app I'm using which believe it that file was a new component and as it could not load it ( because it was NOT a new component ) it crashed.

How can I get rid of this temporary files?

share|improve this question

2 Answers 2

up vote 12 down vote accepted

._file files aren't actually temporary files but a file that holds the resource fork data for Mac OS X. Mac OS X will create this for files that are being stored on a non-HFS system in order to preserve the metadata.

However you can run the following command to disable the creation by TextMate of a resource fork:

defaults write com.macromates.textmate OakDocumentDisableFSMetaData 1

If you have the latest version (build 1589 - Nov. 23rd, 2009) it also allows you to enter an array of file systems instead if you still want the metadata on other drives (say yes to your internal, and no to any network or non-HFS drive):

defaults write com.macromates.textmate OakDocumentCustomFSMetaData '( afpfs, nfs, msdos, hfs )'
share|improve this answer
So, it's an OSX feature? OOhh.. Now you mention it it only happens when I'm using a Parallels mounted drive ( hence non HFS ). About the defaults: what is the default value? ( just in case I need to put it back ) –  OscarRyz Jul 22 '09 at 20:13
Default value is 0, but don't worry... you will NEVER miss this feature. –  mmc Jul 22 '09 at 21:53
Great question, great answer. :-) –  robsoft Aug 8 '09 at 15:06
The metadata contains the TextMate cursor position, which, depending on the file, can be quite useful. –  Daniel Beck Apr 25 '11 at 10:37

TextMate uses the resource fork to store things like editing position and code-folding state. These are all things you can live without, though they're certainly nice to have.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.