Having recently purchased a Macbook Pro and using it on my internal network comprising of a Windows Server 2008 box and several Windows 7 clients, I noticed a whole bunch of trash files being created by the Mac. Namely, all the .DS_Store files.
A quick google search later and the Apple support site explains how to stop this bad behaviour:
- Open Terminal.
- Execute this command:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
- Either restart the computer or log out and back in to the user account.
There are some more sensible settings for OSx here:
https://github.com/mathiasbynens/dotfiles/blob/master/.osx?os-x-10.8