Mappings are stored in the startup services database. I am not where it is stored, but the exact location does not matter, because there are better ways to achieve your goal.
You can manually update the startup services database in several ways, but personally, I think that doing this programmatically would be easier, especially in your situation. In this case, you would use the Launch Services API, in particular, I would consider using LSRegisterURL() , since that seems to be what you want to do.
See the Launch Documentation for more information on registering applications in the database and how it all works in general.
source share