Getting values from every Live effect using java

Ascetic's icon

Im looking for a way to be able to retrieve the data from multiple live effects and store it for manipulation. I think javascript will be the most efficient method but ive not written any before so im looking for some help with what to do.

What im thinking is if you can query a device in a patch like this http://www.maxforlive.com/library/device.php?id=166 there must be a way to set this up to get everything for each device. Ive obviously had a look at that patch and whats going on in it but im a little lost. Any pointers would be fantastic,

Thanks