Stop Finder/OSX From creating TemporaryItems and .apdisk on Network shares I'm looking for some way to configure OSX to prevent it creating .apdisk files and .TemporaryItems folders on network shares. 

These are created any time OSX accesses a shared folder on the network. 

In searching, some possible solutions I've found include: 


Stop using the Application (Finder)
Mark the share(s) as read-only
Ignore them 
Use 3rd party software (such as BlueHarvest) to remove the files. 
Schedule a cron script to delete these files. 


Unfortunately the first three options are not workable for me, and I'd rather not have to buy licences or schedule clean-ups on the file servers.

Is there a way to configure OSX not to create these in the first place?

(Finder is connecting via AFP to the network shares, for what it's worth)

Edit, approx 1 year later: Please note that I'm not looking for a cleanup solution. 

BlueHarvest (if you have a mac to run it on), and scheduled cleanup scripts are fine - but less than ideal. I really need a solution which prevents OSX from creating these files in the first place.
At this point in time, it appears Apple don't provide such a configuration option which is disappointing.
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.


Reference: http://support.apple.com/kb/HT1629