Re: recipe for querying an info.plist file from postinstall?
Re: recipe for querying an info.plist file from postinstall?
- Subject: Re: recipe for querying an info.plist file from postinstall?
- From: Scott Amory <email@hidden>
- Date: Fri, 11 Jul 2008 13:45:30 -0700
Hi Paul
On Jul 11, 2008, at 1:37 PM, Paul Miller wrote:
I'd like to "pass some information" to my postinstall by having it
read the package's info.plist file.
For example, rather than hard-code the unique filename where my
dynamic information is passed to the script, I'd like the script to
get the filename from the info.plist file. Then I can do all my per-
installer stuff in just the info.plist, rather than in both places.
You know, avoiding duplicate information and all that.
Is there some kind of command-line tool I can call from a bash
script to parse out the string value of a certain key in a plist file?
Try /usr/libexec/PlistBuddy. We use here at Apple all the time.
Scott
I know I could probably write my postinstall script in Python and
use a full-blown xml parser, but I was wondering if there were a
simpler way.
--
Paul Miller | email@hidden | www.fxtech.com | Got Tivo?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@apple.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden