command line version of finder's get info command

I am trying to find which version of MS Office 2008 is installed on a bunch of machines. On one machine, I can just do a get info on the MicrosoftComponentPlugin.framework, but I don't want to have to touch every machine.

Does anyone know of a way to get this info using the command line?

Ideally, I would like to use ARD's send unix command to grab this info from a lot of machines, then run install the .mpkg on the machines that aren't the latest version...

Thanks in advance

Posted on Jan 25, 2010 8:36 AM

Reply
9 replies

Jan 26, 2010 5:26 AM in response to Mark Jalbert

Thanks folks, I combined your two suggestions, i.e. use plistbuddy to extract the info from the MicrosoftComponentPlugin.framework...Basically, it seems that the version info of office is stored in this particular file, vs word or excel etc...

I used the following command, in case anyone else is trying to do the same thing...

$ /usr/libexec/PlistBuddy -c "Print CFBundleVersion" /Applications/Microsoft\ Office\ 2008/Office/MicrosoftComponentPlugin.framework/Resources/Info.plist

Thanks

Jan 26, 2010 1:08 PM in response to Cole Tierney

Maybe not. According to the defaults man page:

WARNING: The defaults command will be changed in an upcoming
major release to only operate on preferences domains. General
plist manipulation utilities will be folded into a different
command-line program.


They say there will be an upgrade path, but I can't imagine it being named "PlistBuddy". That sounds way too much like some programmer named it. They need something more professional. plutil is already taken, but maybe it could be enhanced. plmanip maybe.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

command line version of finder's get info command

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.