What is the best way to send scripting commands to Jmol from an external application?  I am developing an application in C++ which will monitor for events from an XBox Kinect and use that information to control Jmol.  I've seen appsync -- http://chemapps.stolaf.edu/jmol/docs/misc/appsync.txt -- and I can make it work from one Jmol instance to another, but how can I get the same results from my C++ application?  I am using Jmol 12.2.27.

I've tried a simple test using curl:
Jmol console: $ sync -3000
Linux console: $ curl -H "Content-Type: application/json" -X POST -d '{"type":"command", "command":"rotate"}' localhost:3000
but nothing happens.

What am I missing?  And is there a better way?


Regards,
Benn Snyder