« OS X Audio Recorder | Main | Mac Software »

December 13, 2004

What are .DS_Store Files?

This morning I finally got around to researching Apple's .DS_Store files.  I've notice these files on my Windows server, whenever I connect my powerbook to move files.  I have found .DS_Store files on my USB thumb drives as well.  If you use Apple's OS X operating system, you probably have these files littered all over your file system.  The best explanation I found on .DS_Store file is listed below. (via TinkerTool)

The .DS_Store files are created by the Finder during its normal course of operation but they are invisible by default. The Finder will automatically put a .DS_Store file into every folder you have opened. These files are used to save the positions of icons, the size of the respective Finder window, the window's background, and many more view options. While professional users consider the .DS_Store files to be a design flaw of the Mac OS X Finder, a mechanism like this is necessary when opening Finder windows for exchangeable disk media to give former users of the classic Mac OS the same user experience they had in previous operating system versions. If you don't like to see the .DS_Store files, replace the Finder by a better file management application.

I located another site, Rixstep,  discussing .DS_Store files with an Apple employee.

If you need a short script to remove these peevish files, try the one-liner I found on Macromedia's site.

sudo find / -name ".DS_Store" -depth -exec rm {} \;

-Chris

Posted at 12:25 PM in General IT | Permalink

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/t/trackback/124876/1532779

Listed below are links to weblogs that reference What are .DS_Store Files?:

Comments

Another solution is this

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Your finder won't create any DS_Store file on a network volume

Greets Bas

Posted by: bass-x | Nov 23, 2006 9:29:03 AM

How do you put those lines to use? Where do I copy/paste it to?

Posted by: Clueless | Jan 24, 2007 3:18:14 PM

Clueless -

The one-liner I mentioned in my post would be run from a command prompt. From Finder, navigate to the Applications directory, then Utilities, and finally click on the "Terminal" application.

Chris

Posted by: Chris | Jan 24, 2007 11:23:47 PM

I appolagize for my ignorance, but my situation is as follows:

I use a flash drive to transfer files from my PC to apple computers at school. I guess the whole DS flie thing isn't that big of a deal, but I just find it irritating and annoying. I personally am not allowed to change settings on the multipal Macs at school. Is there something I can do to my PC at home that automatically deletes those files or something that would satisfy my situation?

Posted by: Still Clueless | Jan 25, 2007 6:06:37 PM

Chris,

Try this little app: Onyx
http://www.titanium.free.fr/pgs2/english/onyx.html
I don't know if it will work, but under maintenance they are mentioned. Also what made them invisible for me is:
TinkerTool:
http://www.bresink.com/osx/TinkerTool.html

Hope this helps.

Oreo

Posted by: Oreo | Feb 26, 2007 10:17:51 AM

My friend put around 400 pictures and several short videos onto a DVD-R. They were burning using a Mac. When I got home to my PC and opened the DVD, a pop-up saying that my DVA version could read the files, it just couldn't edit them. I opened the DVD from My Computer and the only file on the DVD was the .DS_Store file. What is that and how do I got my files?

-Z

Posted by: Z | May 5, 2007 3:25:55 PM

The '-depth' in your command line would seem to be redundant. The manpage specifies it's used in conjunction with cpio which wouldn't apply here. Otherwise if you want commands to get rid of these and other critters, try this.
http://rixstep.com/clix

Posted by: Rick | May 15, 2007 12:51:18 AM

Post a comment