Run programs on Mac OS X

Anyone know of a way to have Vera scenes or Luup run programs on a Mac? I also use Roomie Remote on my iOS devices, which has a helper app that runs on my Mac. This allows me to start apps on my mac from my iOS devices. I have written a lot of apple scripts and would love to be able to start them. Some for controlling spotify, itunes, airfoil, etc.

Vera can Ssh into the mac and perform command line functions. And as you know you can do a ton from the terminal. Or… Find some web service you can call a URL from vera to your mac. But I do t know of anything that listens for this on the mac. Yet…

Thanks jimpap for pointing me in the right direction.

Here’s the answer:
Terminal 101: Running AppleScripts from the Terminal | Mac|Life
http://www.maclife.com/article/columns/terminal_101_running_applescripts_terminal