A simple problem

I’ve never coded anything in AppleScript, but I’m pretty quick when it comes to learning programming languages. I’m posting here though because I have a simple problem that I think AppleScript is the best solution for. I’ve dabbled with Automator in the past, and I appreciate the way it integrates scripts into the operating system so effortlessly, but what I need to do goes beyond automator’s abilities.

All I need to do is monitor the airport connection, check the SSID that I’m connected to, and force quit a certain application when I connect to a certain access point. How difficult would this be, and could anyone point me in the right direction to solve this problem?

Thank you,
Bryan

See: http://macscripter.net/viewtopic.php?id=28234 for StefanK’s neat solution.