Updated to work with osx mavericks my making the terminal sender an explicit call.