Re: pList compression
Can anyone who has OSX installed without the Apple Developer Tools (ie the default installation) confirm whether the defaults command line tool is installed. Typing the following into the terminal: defaults help or the following in the message box in Revolution put shell(defaults help) should do the trick. Or the plutil command line: plutil -help / put shell(plutil -help) I have them installed on Tiger - but Ive the Developer Tools installed and they add a bunch of command line tools to the system. N.B - is there a way to determine which command lines tools are available in your shell? On 06/10/2007, Thorsten Hohage [EMAIL PROTECTED] wrote: They want the common user kept away from fiddling around in a file that he should not access? Possibly. I am not sure where apps tend to store there registration details, or if there are security issues. Still then why start off with a nice open XML format and then bundle command line tools that let anyone read and write the compressed pLists? Most users that can figure out where the preference files are can most likely use the shell. My money is on speed of access - parsing XML is not the fastest way to load preferences. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: pList compression
Hi David, I have one computer with just a standard OS X as bought, no developer tools installed and defaults help works fine in Terminal. To see if a command is installed, I guess you could put the shell command inside a try structure. Cheers, Sarah On 10/7/07, David Bovill [EMAIL PROTECTED] wrote: Can anyone who has OSX installed without the Apple Developer Tools (ie the default installation) confirm whether the defaults command line tool is installed. Typing the following into the terminal: defaults help ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: pList compression
Thanks Sarah - anyone know if this works on Panther? On 07/10/2007, Sarah Reichelt [EMAIL PROTECTED] wrote: Hi David, I have one computer with just a standard OS X as bought, no developer tools installed and defaults help works fine in Terminal. To see if a command is installed, I guess you could put the shell command inside a try structure. Cheers, Sarah On 10/7/07, David Bovill [EMAIL PROTECTED] wrote: Can anyone who has OSX installed without the Apple Developer Tools (ie the default installation) confirm whether the defaults command line tool is installed. Typing the following into the terminal: defaults help ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: pList compression
Are these command line utils part of the default Tiger distribution? And does anyone know what compression is used if it is not possible to rely on these command line utilities to be present? On 03/10/2007, Ken Ray [EMAIL PROTECTED] wrote: On Wed, 3 Oct 2007 13:01:40 -0400, Todd Higgins wrote: I'm not sure if this is what you are looking for, but some plist files are in a binary format instead of just raw XML. Apple has provided a command line utility that allows you to convert between the two formats. NAME plutil -- property list utility SYNOPSIS plutil [command_option] [other_options] file ... DESCRIPTION plutil can be used to check the syntax of property list files, or convert a plist file from one format to another. Right... the formats are xml1 and binary1. So for example to convert a binary pList to XML, do this: plutil -convert xml1 pathToPList and to convert it back: plutil -convert binary1 pathToPList HTH, Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: pList compression
Just curious: What has to be added to a pList to make it large enough to warrant compression? -- Richard Gaskin Managing Editor, revJournal ___ Rev tips, tutorials and more: http://www.revJournal.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: pList compression
Nothing - they are all small. My only guess is that all the pList files for all applications ever installed are stored. All these files may be indexed in some way - as a defaults read returns output from all the preference files - which makes me think that it may not be compression exactly but a searchable binary format of some kind - at least i cant figure out what compression is used or why a standard compression is not used. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: pList compression
On Sat, 06 Oct 2007 11:08:57 -0700, Richard Gaskin wrote: Just curious: What has to be added to a pList to make it large enough to warrant compression? It's not really compression, I don't think, just binary encoding. And why? I don't know... :-) Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: pList compression
On 2007-10-06, at 20:30, Ken Ray wrote: On Sat, 06 Oct 2007 11:08:57 -0700, Richard Gaskin wrote: Just curious: What has to be added to a pList to make it large enough to warrant compression? It's not really compression, I don't think, just binary encoding. And why? I don't know... They want the common user kept away from fiddling around in a file that he should not access? regards Thorsten Hohage -- objectmanufactur.com - Hamburg,Germany ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: pList compression
On Oct 3, 2007, at 11:55 AM, David Bovill wrote: Does anyone know how MacOs pList files are (optionally) compressed (ie preference pList files). I can't work it out or find a reference to this on the net. I have had a few goes with zip, gzip and bzip2 without success so far? Hi David, I'm not sure if this is what you are looking for, but some plist files are in a binary format instead of just raw XML. Apple has provided a command line utility that allows you to convert between the two formats. NAME plutil -- property list utility SYNOPSIS plutil [command_option] [other_options] file ... DESCRIPTION plutil can be used to check the syntax of property list files, or convert a plist file from one format to another. Regards Todd ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: pList compression
On Wed, 3 Oct 2007 13:01:40 -0400, Todd Higgins wrote: I'm not sure if this is what you are looking for, but some plist files are in a binary format instead of just raw XML. Apple has provided a command line utility that allows you to convert between the two formats. NAME plutil -- property list utility SYNOPSIS plutil [command_option] [other_options] file ... DESCRIPTION plutil can be used to check the syntax of property list files, or convert a plist file from one format to another. Right... the formats are xml1 and binary1. So for example to convert a binary pList to XML, do this: plutil -convert xml1 pathToPList and to convert it back: plutil -convert binary1 pathToPList HTH, Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution