Only run osascript if on OSX.