Blog > Display system version and build number in GeekTool

 Display system version and build number in GeekTool

  
Display system version and build number in GeekTool

Tip for Geektool

If you're a developer or a tester who uses to switch between various versions of Mac OS for testing purposes, you might find handy to get GeekTool to display the system version and build number. Here's how I do it:

echo `/usr/libexec/PlistBuddy -c "Print :ProductUserVisibleVersion" /System/Library/CoreServices/SystemVersion.plist` \(`/usr/libexec/PlistBuddy -c "Print :ProductBuildVersion" /System/Library/CoreServices/SystemVersion.plist`\)

The result is something like this:

10.5.7 (9J61)

 Previous Comments

There are no comments yet. Be the first to post one!

Please Log in if you wish to comment.