Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

"Get Info" from the command line?

Is there a Unix utility that performs the same function as the 'Get Info' utility?

Mac OS X (10.4.7)

Posted on Nov 9, 2006 12:59 PM

Reply
5 replies

Nov 9, 2006 2:45 PM in response to Splendiforous

Not sure what you mean by "file versions" but here's a sample of what GetFileInfo shows:

-bash:~francine$ GetFileInfo /Users/francine/Desktop/TCMNov.webarchive
file: "/Users/francine/Desktop/TCMNov.webarchive"
type: ""
creator: ""
attributes: avbstclinmEd
created: 11/06/2006 12:03:08
modified: 11/06/2006 12:03:08

If this is what you want you can download just GetFileInfo and SetFile here:

http://homepage.mac.com/francines/.Public/setgetfile.zip

Unzip and put the commands wherever you want, then use by dragging into the Terminal or adding them to something in your PATH, or add the folder to your PATH.
Francine

User uploaded file
Francine
Schwieder

Nov 9, 2006 10:03 PM in response to Splendiforous

Try this:

defaults read /path/to/application/version CFBundleVersion

You can also use CFBundleShortVersionString after the last space in the command if CFBundleVersion doesn't work. This method can only be used on packages; it will not work on applications and other files which do not use the package structure, which includes most of the files used by the Classic environment.

(17624)

"Get Info" from the command line?

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