docs: def set_remote_events(enable):
      '''
      Set whether the server responds to events sent by other computers (such as
      AppleScripts)
  
      :param bool enable: True to enable, False to disable. "On" and "Off" are
          also acceptable values. Additionally you can pass 1 and 0 to represent
          True and False respectively
  
      :return: True if successful, False if not
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' system.set_remote_events On
      '''
      state = __utils__['mac_utils.validate_enabled'](enable)
  
      cmd = 'systemsetup -setremoteappleevents {0}'.format(state)
      __utils__['mac_utils.execute_return_success'](cmd)
  
      return __utils__['mac_utils.confirm_updated'](
          state,
          get_remote_events,
          normalize_ret=True,
      )