|
CSV 2 Structure Plugin (Composition by benoitlahoz)
Hi ! As I wanted to manage with 'states/events' with the Kinect I made this little plugin based upon the Danilo Campos CSV Parser (http://blog.danilocampos.com/). It takes a CSV file (with comma, semicolon or tab delimiter) and output a structure with strings, numbers and colors. For colors, insert "RGBA" at the end of your header, then insert RGBA values separated by a blank space in your fields. I have troubles with UTF8 so it doesn't accept special characters (especially... not French special characters). Changing the encoding while parsing the file doesn't change anything, except... crash... Source code and plugin included in the next post. |
Here are the plugin and source code. Some other work to do on it...
nice. so i can use this to parse my email contacts with or is it just for colors ?
Yes. Actually it doesn't parse well UTF-8 files (if you have french contacts for example !) even if I change the encoding in the source. I may modify the parser or change for a plain Objective-C one... There's a good one there : http://www.macresearch.org/cocoa-scientists-part-xxvi-parsing-csv-data
yeah i get (see below) when i try my contacts
Would you send an example CSV (with fake contact, obviously) ? Thanks !
my contacts look like this..
never mind i just took this crap out of top of my contact list and it works.
to many ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, i can not find and replace all them will have to edit them out..
thanks for sharing
Yes, I forgot to say that it's necessary to make headers (which are keys for each 2nd degree output structure).