From lua to AppleScript
Posted: Sat Feb 14, 2015 2:29 pm
I want to use this code in AppleScript to control my TV.
Is there a guide for how to do this? If I just use curl and try to post the jsonString it gives back "bad argument".
- Code: Select all
TV = Net.FHttp("192.168.1.6",1925)
jsonString = {id="hdmi1"}
jsonTable = json.encode(jsonString)
response, status, errorCode = TV:POST("/1/sources/current?callback=", jsonTable )
Is there a guide for how to do this? If I just use curl and try to post the jsonString it gives back "bad argument".