Cleanup the Open with… menu in OS X

For OS X Leopard this worked for me. Cut and paste this command into terminal:

/System/Library/Frameworks/CoreServices.f*/Frameworks/LaunchS*/Support/lsregister \
   -kill -r -domain local -domain system -domain user
0