Every time I get a machine that I install Xcode on, it associates itself with all kinds of filetypes. E.g., .xml, .rb, even .java! It's such a nuisance to have to re-associate those file extensions individually. If I want to open Xcode, I'll open Xcode, but I never want to open Xcode by double-clicking on a script or using open.
Is there any way to globally disassociate Xcode from all file types? More generally, is there any way to do this for any app (e.g., QuickTime)?
PS: I know about How to Change File Type Associations? but this aims at changing one specific association, not disabling them all at once.