Check if a Mac OS X application is present

前端 未结 3 1797
轻奢々
轻奢々 2021-02-03 12:29

I recall there being a Cocoa framework or AppleScript dictionary to check if an Application bundle with a specific name is installed at all, anywhere on the computer.

Ho

3条回答
  •  南笙
    南笙 (楼主)
    2021-02-03 13:16

    From the command line this seems to do it:

    > mdfind 'kMDItemContentType == "com.apple.application-bundle" && kMDItemFSName = "Google Chrome.app"'
    

提交回复
热议问题