I am looking for a way to obtain a document identifier by it's extension/suffix by using either Python, Swift or Command-Line.
For example, having *.pxm as an input I am looking for com.pixelmator.pxm -> /Applications/Pixelmator Pro.ap. Does anyone have an idea?
I already found UTTypeCreatePreferredIdentifierForTag but the Carbon Framework is deprecated and therefore I can't use this.