0

How can I list all the installed programs on Mac OS, date of installation and version using Java?

For example, on Windows I use wmic get product name, version, InstallDate.

Ruslan Osmanov
  • 20,486
  • 7
  • 46
  • 60
Phrxn
  • 69
  • 7

2 Answers2

0

You can create a dump of all the applications registered with Launch Services using,

    lsregister -dump

Execute this command through your java applications and read the dump file to get the app names.

AnOldSoul
  • 4,017
  • 12
  • 57
  • 118
0
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump

or

ls -hal /Applications/
grep -i CFBundleShortVersionString -A 1 /Applications/Mail.app/Contents/Info.plist 
user1133275
  • 2,642
  • 27
  • 31