Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #52565

Re: Trick: validate the preferences plist

From Wes Groleau <Groleau+news@FreeShell.org>
Newsgroups comp.sys.mac.system
Subject Re: Trick: validate the preferences plist
Date 2013-11-23 17:28 -0500
Organization Ain’t No Organization Here!
Message-ID <l6ra70$8k6$1@dont-email.me> (permalink)
References <52905e70$0$49326$c3e8da3$c8b7d2e6@news.astraweb.com>

Show all headers | View raw


On 11-23-2013, 02:51, JF Mezei wrote:
> plutil -s  ~/Library/Preferences/*.plist
>
> this will scan though all your .plists and validate the files. Tge "-s"
> eliminates the result if the status is "OK".
>   You may find you have a few corrupt files which you should delete.
>
> I have found a handful in my preferences folder with errors and they
> were causing a number of errors in the console.
>
>> 13-11-23 00:04:07	PreferenceSyncClient[6259]	Preference plist was NOT a dictionary.

Maybe the tool is choking on versions of the format that are new?

man page says it can handle version 1 of the XML format, version 1 of 
the binary format, and JSON format.

Most of my few errors said "unexpected 'b' on line one."  But the file 
was binary.  Line one after conversion to XML ?

That file starts with "bplist"

If I remove the 'b' and check again, I get "unexpected 'p' on line one." 
  But a random check of four unreported files showed they all started 
with "bplist"  And plutil -p shows that line one is a single char '{' 
indicating that the /bplis' is part of some handshaking characters.

Odd.

-- 
Wes Groleau

   “Grant me the serenity to accept those I cannot change;
    the courage to change the one I can;
    and the wisdom to know it's me.”
                                — unknown

Back to comp.sys.mac.system | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Trick: validate the preferences plist JF Mezei <jfmezei.spamnot@vaxination.ca> - 2013-11-23 02:51 -0500
  Re: Trick: validate the preferences plist Jolly Roger <jollyroger@pobox.com> - 2013-11-23 17:58 +0000
    Re: Trick: validate the preferences plist Wes Groleau <Groleau+news@FreeShell.org> - 2013-11-23 13:15 -0500
      Re: Trick: validate the preferences plist Jolly Roger <jollyroger@pobox.com> - 2013-11-23 19:48 +0000
      Re: Trick: validate the preferences plist gtr <xxx@yyy.zzz> - 2013-11-23 12:38 -0800
  Re: Trick: validate the preferences plist Wes Groleau <Groleau+news@FreeShell.org> - 2013-11-23 17:28 -0500
    Re: Trick: validate the preferences plist JF Mezei <jfmezei.spamnot@vaxination.ca> - 2013-11-23 21:09 -0500

csiph-web