[TxMt] properties parser?

Allan Odgaard allan at macromates.com
Tue Jan 4 20:17:52 UTC 2005


On Jan 4, 2005, at 21:10, Xavier Noria wrote:

> I asked whether a parser exists before I write some even more dirty 
> hack because if for zero price I could robustly deal with the elements 
> of, say,

Ah yes -- this is the standard old-style ASCII property list format. 
You can convert it to XML like this:
    plutil -convert xml1 <file>

TextMate still understands the XML version, and this may be easier for 
you to work with. Basically the file is just a serialized 
array/dictionary (hash). OS X itself have parsers for this format, but 
if you convert it to XML you can use any XML parser to read them (using 
OS X has the advantage that it will build the structure in memory).

Which language do you want to write it in?




More information about the textmate mailing list