is it possible to execute a Script (Applescript/Shellscript) when I leave a window (and when I switch back to it)? What I want to do: I want to pause my VM when I leave the VM-Window (vmrun pause path/to/vm) and I want to resume the VM when I switch back to the VM (vmrum unpause path/to/vm).
Thanks!
