List all application versions


/ Published in: Bash
Save to your folder(s)

List the current version and installation date of every application on a OS X system, using of Spotlight.


Copy this code and paste it in your HTML
  1. #!/bin/bash
  2. mdfind 'kMDItemKind == "Application"' | perl -ne 'chomp; print "\"$_\"\n" ' | xargs mdls -name kMDItemFSContentChangeDate -name kMDItemVersion -name k@MDItemDisplayName -name kMDItemPath | perl -pe 's/^\/.+/"-" x 20/e'

URL: http://harnly.net/2007/blog/geek/macosx/list-all-application-versions/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.