Launch Services is an API that enables a running application to open other applications or their document files in a way similar to the Finder or the Dock.
[Launch Services Concepts and Tasks]
lsregister is a useful command line tool for helping you manager the Launch Services database.