Benches Uncategorized

2

com.apple.AppleFileServer.plist - type 'XML' or...

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I was looking into a small problem on a 10.4.10 server (problem not important at this time) and went to check contents of /Library/Preferences/com.apple.AppleFileServer.plist.

I was expecting this file to be of type, "XML document text", but instead of this I have it as type, "data", and therefore not readable or editable using a text editor (e.g., vi). The file types are as reported by the Terminal 'file' command.

I have another 10.4.10 server which, as expected, shows it as type XML.

The 10.4.10 server showing it as 'data' is a Dual 2Ghz PowerPC G5, recently fresh installed as 10.4.0 and updated with CmbBase10.4.8PPC and CmbBase10.4.10PPC (as seen in Receipts folder).

The 10.4.10 server showing it as 'XML' is a 400MHz PowerPC G4, which underwent interim updates, 10.4.2 ComboBaseUpd, 10.4.3 ComboBaseUpd, etc. finishing with BaseUpd10.4.8PPC and ComboBase10.4.10PPC (as seen in Receipts folder).

Maybe this plist underwent a type change in the CmbBase10.4.8PPC updater?

Anyone know if the plist type is significant? Anyone else got a "data" type one?

-david

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    OK, I should have investigated with 'plutil' before posting...

    Both the XML and binary versions are valid, but still curious to why the types are different for same server version since I have not explicitly converted them at any time. So any comments welcome... ta.

    -david

  2. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Can't tell you about why the file is different in your two cases, but both types are common since 10.4 and I think that any switching the type should not mess with any application's ability to read or write to it granted they're using the proper system calls.

    As you probably learned from plutil, you can convert the format back and forth:

    plutil -convert xml1 file.plist

    or

    plutil -convert binary1 file.plist

    Another thing I thought I'd point out is that 'defaults', Property List Editor (comes w/Developer Tools) and BBEdit can all read and write the binary format WITHOUT conversion.