Coerce string to record or something like that?
Coerce string to record or something like that?
- Subject: Coerce string to record or something like that?
- From: Michael <email@hidden>
- Date: Tue, 11 Dec 2001 19:34:42 -0800
Hello,
In order to aid me in organizing my MP3 collection in iTunes, I define some
custom fields in the comments of the ID3 tags. Right now, a typical comment
tag would read
unproc,false
I have a handler which reads the comment of an MP3, turns it into a list,
then turns the list into a record which it returns. Another handler takes a
record as an argument (in order to change one of the custom fields) and
reverses the whole mess into a string in order to write a new comment in the
ID3 tag.
I would prefer to simply have the comments look like records (name/value
pairs) in the first place, so I could tell the status of a particular song
at a glance in iTunes, and possibly manually edit it if I felt. Is there a
way to easily convert a string like "[status: /"unproc/",lyrics: false]" or
"status: "unproc",lyrics: false" into a record?
Michael