MacOS X Port of http://mspencer.net/daggorath/dodpcp.html