This is a pretty basic example to use the ApplicationServices framework from Swift in MacOS.