Hey guys, I want the application TeamViewer to start when I Lock my iMac trough either the key chain way or using the hot corner method. And quit again upon unlocking. Does anyone know how to code the ways, mentioned above, of locking the screen? I couldn't find anything on the web. I am fine with using either a bash script of using apple script. Any help would be appreciated.