I see that it is possible to control Philips Hue lights with commands such as this:
Make an HTTP POST request of the following to (your hue's website here)
{"username": "YourAppName", "devicetype": "YourAppName"} If you have not pressed the button on the Hue Hub you will receive an error like this;
{"error":{"type":101,"address":"/","description":"link button not pressed"}} Press the link button on the hub and try again and you should receive;
{"success":{"username":"key"}} The key above will be an md5 string, remember this, you'll need it in all future requests
--but I'm not sure how to use Applescript to speak that language--I know you can use "do shell script" and possibly cURL in there as well, but, I'm falling apart on actually getting the code to work correctly.
Any thoughts?