Zap .DS_Store files to fix Finder window settings bug

Nov 26, '02 09:33:26AM

Contributed by: steidley

Ever since I updated to 10.2, I couldn't get the Finder to remember window settings any better than in 10.1, so I decided to zap all the .DS_Store files and start over.

I used the following script to accomplish this task. I saved the script as rmdsstore.sh (remember to make it executable), launched Terminal, quit the Finder and ran the script as root.

 #!/bin/sh
# rmdsstore.sh
# deletes all .DS_Store files on /
for x in `find / -name ".DS_Store" -print`
do
rm -f $x
done
#eof
After restarting the finder, window positions are remembered!

[Editor's note: I haven't tested this script myself, nor have I had the window position memory problem ... but I know others have, so maybe this will help someone out there.]

Comments (25)


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