Dont do osascript for focus emacs if not in osx.