• 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: Read Write pList Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Read Write pList Files


  • Subject: Re: Read Write pList Files
  • From: Luther Fuller <email@hidden>
  • Date: Wed, 31 Mar 2010 10:09:50 -0500

Subject changed from Re: (no subject)

On Mar 31, 2010, at 9:54 AM, Mark J. Reed wrote:
> Typo - you called the record 'defaultPrefsRec' but then referenced it
> as 'defaultPrefsRecord'.

Yes, that was a typo. Thanks.

> shame there's no way to create a new preferences file from System
> Events, rather than shelling out to defaults write.
>
> I would add a
>
> do shell script "plutil -convert xml1 " & (POSIX path of prefsFile)
>
> so that you get an XML-formatted plist instead of the default binary
> format; that way the config is human-readable, which is the main
> benefit of flat text files of the sort you started out with.

An older version of Property List Editor allowed you to see the file in xml format. I found this format more confusing than helpful, so I have always ignored xml. I've never used 'plutil' and I wonder if using it to convert a file to 'xml1' format would interfere with the ability to read/write its contents as an AppleScript record. (?)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Read Write pList Files
      • From: "Mark J. Reed" <email@hidden>
    • Re: Read Write pList Files
      • From: Yvan KOENIG <email@hidden>
References: 
 >(no subject) (From: Oakley Masten <email@hidden>)
 >Re: (no subject) (From: Luther Fuller <email@hidden>)
 >Re: (no subject) (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: (no subject)
  • Next by Date: Re: Read Write pList Files
  • Previous by thread: Re: (no subject)
  • Next by thread: Re: Read Write pList Files
  • Index(es):
    • Date
    • Thread