• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: recipe for querying an info.plist file from postinstall?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: recipe for querying an info.plist file from postinstall?
      • From: Fritz Anderson <email@hidden>
References: 
 >recipe for querying an info.plist file from postinstall? (From: Paul Miller <email@hidden>)

  • Prev by Date: recipe for querying an info.plist file from postinstall?
  • Next by Date: Re: recipe for querying an info.plist file from postinstall?
  • Previous by thread: recipe for querying an info.plist file from postinstall?
  • Next by thread: Re: recipe for querying an info.plist file from postinstall?
  • Index(es):
    • Date
    • Thread