aaron.harnly.net

List all application versions

Here’s a nice little one-liner for listing the current version and installation date of every application on your OS X system, using the wonders of Spotlight:

mdfind “kMDItemKind == ‘Application’” | perl -ne ‘chomp; print “\”$_\”\n” ‘ | xargs mdls -name kMDItemFSContentChangeDate -name kMDItemVersion -name kMDItemDisplayName -name kMDItemPath | perl -pe ’s/^\/.+/”-” x 20/e’

Sample output:

kMDItemDisplayName         = "MarsEdit.app"
kMDItemFSContentChangeDate = 2006-03-13 22:58:25 -0500
kMDItemPath                = "/Applications/3rdPartyApps/Write/MarsEdit.app"
kMDItemVersion             = "1.1.2"
--------------------
kMDItemDisplayName         = "OmniWeb.app"
kMDItemFSContentChangeDate = 2007-02-14 17:23:51 -0500
kMDItemPath                = "/Applications/3rdPartyApps/Connect/OmniWeb.app"
kMDItemVersion             = "5.5.4"
--------------------
kMDItemDisplayName         = "CandyBar.app"
kMDItemFSContentChangeDate = 2006-04-14 18:40:52 -0400
kMDItemPath                = "/Applications/3rdPartyApps/Tinker/prettify/CandyBar.app"
kMDItemVersion             = "2.6.1"
--------------------
kMDItemDisplayName         = "Vienna.app"
kMDItemFSContentChangeDate = 2007-01-27 13:38:17 -0500
kMDItemPath                = "/Applications/3rdPartyApps/Connect/Vienna.app"
kMDItemVersion             = "2.1.1.2109"
Digg this     Create a del.icio.us Bookmark     Add to Newsvine

No Responses to “List all application versions”

No comments yet

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word