'set: Set an object\'s data.
Required argument: the object for the command
Keyword argument to: The new value.
Keyword argument _attributes: AppleEvent attribute dictionary'

def _set(self, _object, _attributes={}, **_arguments):

    _code = 'core'
    _subcode = 'setd'
    keysubst(_arguments, self._argmap_set)
    _arguments['----'] = _object
    (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
    if _arguments.get('errn', 0):
        raise Error, decodeerror(_arguments)
    if ('----' in _arguments):
        return _arguments['----']
