Just read through your tutorial Ryam. Very nice. It's amazing how similar a lot of what you came up with is what I'm going to be doing. I need to use curl as well to to call the REST API on my ISY. I also looked at using MC's remote option but it doesn't quite do what I wanted. I need to be able to tell if I'm in theater view, and if the file is a video or image. Only then do I dim things. Been trying to figure out a way to do this with just a script, but quite painful... I also would like to have it happen when the files are played in MC no matter the source (mouse, keyboard) which would mean a plug in. However, I would give that up for a script that checks the other 2 requirements before executing curl to actually dim the lights etc.
Trouble is getting that information means a couple of REST calls to MC's API and parsing the xml that is returned - don't know how to do that from a script. Might look at Powershell. Never used it for REST or XML parsing, but I'll bet it's possible.