Burn CDs without the invisible .DS_Store files

Jan 30, '03 09:40:35AM

Contributed by: Anonymous

I often have to burn CDs for people using Windows machines. After sending out CDs, I would often get a phone call or e-mail asking me what the .ds_store file is. On unix, a file beginning with a dot (.) is invisible, but not on Windows, so the file that contains all the Finder's formatting information comes up as a regular file for them.

I now remove those files before burning by running the following unix command on the mounted un-burnt disk or in the folder I'm going to create a master from:

 % find . | grep .DS_Store | xargs rm
Make sure that the disk or folder in question is NOT open in the Finder, and do not open them after running this. Also be aware that you will lose any window display state information, so only run this on CDs that are destined for use on Windows and backup the folder before running if you need to preserve the Mac finder properties.

Comments (16)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20030130064035219