show error output of osascript in json