Question

I have been using Launch Services function LSFindApplicationForInfo() to check if an appication is installed.

This works fine, except when a user send the application to the trash. This method still finds it in the trash but can't invoke it.

Is there another way to check if an application is installed in /Applications? Or can I specify that I want to only look under /Applications when calling LSFindApplicationForInfo()?

Was it helpful?

Solution

I was able to solve this by checking the path to ensure it started with "/Applications".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top