Try this applescript, Be careful though I have not thouroughly tested it. This will remove all OS X files.
property root_items : {"bin", "dev", "Network", "private", ¬
"sbin", "usr", "Volumes", ".DS_Store", ".hidden", "cores", ¬
"etc", "tmp", "var", "Applications", "Developer", ¬...