'do folder action: Event the Finder sends to the Folder Actions FBA
Required argument: the object for the command
Keyword argument with_window_size: the new window size for the folder action message to process
Keyword argument with_item_list: a list of items for the folder action message to process
Keyword argument folder_action_code: the folder action message to process
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the reply for the command'

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

    _code = 'faco'
    _subcode = 'fola'
    aetools.keysubst(_arguments, self._argmap_do_folder_action)
    _arguments['----'] = _object
    aetools.enumsubst(_arguments, 'actn', _Enum_actn)
    (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
    if _arguments.get('errn', 0):
        raise aetools.Error, aetools.decodeerror(_arguments)
    if _arguments.has_key('----'):
        return _arguments['----']
