How I can parse the list of all Mac applications? I am executing:
ls /Library/Preferences/ > apps.txt
But still there are some apps that are missing from the list. I think it parse only user apps and do not parse common apps
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
To list all the applications on a Mac, use the
This will output the command in human readable format:
Power Manager: Version: 4.6.1 Obtained from: Identified Developer Last Modified: 20/01/2018, 6:42 pm Kind: Intel 64-Bit (Intel): Yes Signed by: Developer ID Application: Dragon Systems Software Limited, Developer ID Certification Authority, Apple Root CA Location: /Applications/Power Manager.app
This will include every application on the Mac, including many that are hidden within folders.
-xml option to the command for a format that can be parsed and analysed by other tools:
system_profiler -xml SPApplicationsDataType
This will output a Property List (XML), such as:
... <dict> <key>_name</key> <string>Safari</string> <key>has64BitIntelCode</key> <string>yes</string> <key>info</key> <string>11.0.3, Copyright © 2003-2017 Apple Inc.</string> <key>lastModified</key> <date>2018-01-31T08:33:08Z</date> <key>obtained_from</key> <string>apple</string> <key>path</key> <string>/Applications/Safari.app</string> <key>runtime_environment</key> <string>arch_x86</string> <key>signed_by</key> <array> <string>Software Signing</string> <string>Apple Code Signing Certification Authority</string> <string>Apple Root CA</string> </array> <key>version</key> <string>11.0.3</string> </dict> ...