• 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
recipe for querying an info.plist file from postinstall?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

recipe for querying an info.plist file from postinstall?


  • Subject: recipe for querying an info.plist file from postinstall?
  • From: Paul Miller <email@hidden>
  • Date: Fri, 11 Jul 2008 15:37:03 -0500

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?

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: recipe for querying an info.plist file from postinstall?
      • From: Scott Amory <email@hidden>
  • Prev by Date: Re: packagemaker command line exception
  • Next by Date: Re: recipe for querying an info.plist file from postinstall?
  • Previous by thread: Re: Installer changes permissions on itself and its payload after 1st run
  • Next by thread: Re: recipe for querying an info.plist file from postinstall?
  • Index(es):
    • Date
    • Thread