Thanks, all...  The daemons clearly should go into /Library/StartupItems
(D'Oh!).  Looking at my own copy of same, I see

  PowerGuardian/
    PowerGuardian
    Resources/
      *.lproj/
        *.strings
    Scripts/
      QuitAll
      SaveAll
    StartupParameters.plist

So it seems that these folks decided to fold their scripts and config
info into the same directory tree.

I find two forms of plist files, BTW.  The "StartupParameters.plist"
files for two apps look like:

{
  Description     = "PowerGuardian";
  Provides        = ("UPS");
  Requires        = ("Disks", "Resolver");
  OrderPreference = "None";
  Messages =
  {
    start = "Starting PowerGuardian";
    stop  = "Stopping PowerGuardian";
  };
}

but the plist files in /Library/Preferences are in XML:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
        <key>lastUser</key>
        <string>Restart</string>
        <key>lastUserUID</key>
        <integer>501</integer>
</dict>
</plist>

Does anyone know wazzup?  It looks like the first format is tied into
some Apple startup mechanism, so it would be well for me to provide it.
The second format could just as easily be YAML (which I am using for my
internal persistent storage), save that Apple-oriented programmers and
programs might get confused...

Hmmm.  I see something in "Cocoa Programming", page 166:

  There are two encoding styles for property lists.  One is formatted
  to be very easy to read.  The other uses industry standard XML
  formatting. ...

The nice thing about standards is that there are so many to choose from...

-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm    - my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc     - Prime Time Freeware's Darwin Collection

Reply via email to