Only use osascript on OSX.