I actually happen to have a plugin written for that purpose

I think it was originally made for SMD3D_Interactive's QMidi project and I can't directly claim to have used it much myself, but I assume it is in working condition.
Commands:
REGISTER FILETYPE extension$, subKey$, description$, application$ [, icon$] [(optionally returns errorCode)]
FILETYPE REGISTERED(
extension$, subKey$)
application$ is the absolute path to the application that the file type should be associated with.
icon is an absolute path to an icon to use for the file type.
errorCode is a non-zero value in case an error occurred while trying to register the file type.
Also, calling REGISTER FILETYPE on an already registered file type will simply update it's data. The plugin doesn't support deletion of file type associations, but it's just a matter of searching for the subKey$ name in the registry and manually deleting it, should you need to.
~~~~~~~~~~~~~~~~
I see you already fixed it, but figured I could post this anyway