Prevent .DS_Store Creation in OS X

October 12, 2006 · 16 comments

Dave from Jungle Disk pointed me to an Apple article for preventing .DS_Store file creation. These .DS_Store files are created multiple times when connecting to a remote file server, such as a SMB/CIFS, AFP, NFS or WebDAV server. Although they are small and hidden, they can quickly get annoying when transferring files. For example, when sending things to my Amazon S3 account via Jungle Disk, transaction times are slowed down because there are so many extra .DS_Store files.

As the Apple doc states, simply execute the following line in your terminal and reboot.

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

PaulStamatiou.com runs on the Thesis Theme for WordPress

How smart is your Theme?  How good is your support? Check out ThesisTheme for WordPress.

Thesis is the search engine optimized WordPress theme of choice for serious online publishers. If you’re a blogger who doesn’t understand a lot of PHP, Thesis will give a ton of functionality without having to alter any code. For the advanced, Thesis has incredible customization possibilities via Thesis hooks.

With so many design options, you can use the template over and over and never have it look like the same site. The theme is robust and flexible enough not only to accommodate a site like PaulStamatiou.com, but also to enable the site to run far more efficiently than it ever has before.

SEO Copywriting Made Simple
I used the Scribe WordPress plugin and service to optimize this blog post for SEO.

{ 4 trackbacks }

Memoria de Acceso Aleatorio » Evitar la creación de archivos .DS_Store en servidores Windows
October 15, 2006 at 2:41 pm
Another great tip from Paul Stamatiou at Blomfeldt.eu
October 24, 2006 at 7:24 am
Prevent .DS_Store Creation in OS X | hadi’s blog
July 30, 2007 at 2:33 am
Memoria de Acceso Aleatorio » Truco: Evitar la creación de archivos .DS_Store en servidores Windows
August 1, 2008 at 12:59 pm

{ 12 comments… read them below or add one }

1 Ronald Heft October 12, 2006 at 10:50 pm

Thank you so much for this. This has been a huge problem with me connecting to PSU’s web storage.

Reply

2 Amit Karmakar October 12, 2006 at 11:14 pm

Brilliant. I have been looking for this for a while… will come in handy!! Thanks Paul.

Reply

3 Constantinos Kouloumbris October 13, 2006 at 5:38 am

Nice, cool tip. I will put it in my thing to do when I reinstall the OS X.

Reply

4 Rafael Fischmann October 13, 2006 at 7:29 am

Onyx already does that for a while now:

http://www.titanium.free.fr/pgs2/english/onyx.html

Reply

5 Andrew Swihart October 13, 2006 at 8:37 am

Maybe its cause I haven’t used Macs much, but this is the first Windows-like tweak I have seen for OS X, like changing a registry value. More to come?

Reply

6 Dustin Bachrach October 13, 2006 at 7:14 pm

Hey, great tip!

I was wondering if anyone knows of any side effects to doing this?

Thanks

Reply

7 Blake Brannon October 13, 2006 at 9:17 pm

Pure Sweetness!!

Reply

8 Kyle Korleski October 13, 2006 at 10:47 pm

Already applied to OS X, thanks Paul!

Reply

9 Mads October 14, 2006 at 6:24 am

yes that command really comes in handy when you’ve got network storage.. another terminal command I use a lot is:

defaults write com.apple.finder AppleShowAllFiles TRUE

followed by

killall Finder (which “restarts” your Finder)

Comes in handy for finding those “secret” files, but also just when you want to clean up your hard drive.

Reply

10 Billytheradponi (Nick Barrett) October 16, 2006 at 1:45 pm

At last, a solution! Thanks for the link :D

Reply

11 Scott Schiller October 17, 2006 at 10:45 am

Thanks for the tip; my G4 cube would always write these files to Windows file (SMB) shares on my “ghetto dev server” (A celeron 433 in my closet), which I’d later see when working on my PC.

Reply

12 Innovation January 30, 2008 at 12:22 pm

I can’t get this to work! I’ve typed it into terminal, copied/pasted from the apple site, even gone through other steps to copy the plist to preferences. STILL won’t work! What could I be doing wrong? I’m using terminal on Mac OS 10.4.11.

Reply

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: