Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BASH question on getting bundle version...



Gang,

First off, sorry if this is an inappropriate question for this list - I scanned the apple lists but didn't see a list that this should obviously to go (feel free to correct me and I'll redirect my question there)...

That said, what is the best way to get the version of a bundled object (.app or .bundle, etc) in a BASH shell script?

I'm pretty new to bash scripting and don't know what is the best approach. Is there a mac specific cmd for auto reading the version info from a bundle's info.plist? Or do I have to manually open the info.plist? If so, are there commands that'll do the xml parsing of the file for me? Or do I need to manually parse for the version info?

I appreciate the feedback of those more savvy than I.

Thx,
Ando

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.