exporting points

 From:  probotix
9634.1 
I want to write a script that would allow me to export all of the X/Y/Z coordinates of points and control handles on a curve. Would this be easy to do with the Javascript API?