Submit your breaking news stories and original articles to us by contacting us
I often use my PowerBook at work to access files on our network, which is all Windows. As a result, our shared files are littered with lots of .DS_Store files. These are usually hidden, but as most power users often do, we like to see all the files, including hidden ones.
Just found a way to prevent the creation of these files on network shares. It basically involves typing a command in Terminal and restarting your computer.
defaults write com.apple.desktopservices DSDontWriteNetworkStores trueThat’s it. Now, go forth, and litter your network no more.
UPDATE: At the request of a reader, here is some information on what the .DS_Store file does:
Under Macintosh OSX .DS_Store holds the information which controls the way a folder will be opened; i.e., the shape and size of the window, the position of the window on the desktop and whether file, folder or icon view has been selected. If you were to delete the .DS_Store the folder would revert to the system default next time it is opened and a new blank .DS_Store would appear (invisibly).
Category: Uncategorized
6 Responses for "Preventing Creation of .DS_Store Files"
August 1st, 2005 at 11:24 pm
1Maybe you could give us non-techies a background into what that file does. Is it really problem, or does it just take up space.
August 3rd, 2005 at 6:42 am
2I have a non-Apple mp3 player that is badly confused by .DS_Store files. Is there a way to prevent their creation on a specific volume?
Thanks
December 18th, 2006 at 12:47 pm
3Great looking site so far!! I’m just starting to look around it but I love the title page! Visit my sites, please:
[url=][/url]
January 20th, 2007 at 9:44 am
4In your instructions to rid a computer of the >DS_Store extension, you say to “Open the Terminal”. Forgive my novice status, but what exactly is “the Terminal”. I find thes files in Photoshop CS2 on my Mac. Could you please be more specific?
February 14th, 2007 at 3:49 am
5@Jean
Terminal is in Applications->Utilities
March 21st, 2007 at 12:46 am
6thanks for taking the time to write this article. I started to use a mac, and i networked it with my web server. Recently I looked through the server while I was on my linux box, and found these .ds_store files all over my web site. LOL. I was worried it was a hacker at first as I was unknowing that these were mac files, and never see them from my mac. So this is just what i wanted, thanks
RSS feed for comments on this post
Leave a reply