This question already has an answer here:
How to associate file type with MacOS X App without launching it first?
3 answers
My Delphi Firemonkey MacOS app makes documents with a .4MD extension.
How can I get my app to launch when the user double clicks on Finder documents with a .4MD extension?
The seemingly duplicate question on Stackoverflow has an answer with a dead link to Apple’s documentation.
This article has answers for Delphi XE2:
https://delphihaven.wordpress.com/2012/08/14/associating-a-file-type-on-osx-part3/