WAIT!
Why can't we make a simple applescript app that does this? When started, this AS app will run on a continuous loop every fraction of a second. What it will do is read a text file named "varname". If the text file has anything but "Done" or "Shut off" in it, it will activate some code that I will personally put in. After it accesses that code, it will save a variable from that code into a text file named "vardata". If the "varname" file says "Done" than it will continue the loop but do nothing. If it says "Shut off" than the applescript file will exit and shut off.
-Gandolf