Is there an api that can return the installed apps on macOS? Currently the only way to get the relevant info seems to be to run system_profiler with SPApplicationsDataType argument. Is there a way to get similar output without running the system_profiler command?