def duplicate(self, _object, _attributes={}, **_arguments): """duplicate: Duplicate one or more object(s) Required argument: the object(s) to duplicate Keyword argument to: the new location for the object(s) Keyword argument replacing: Specifies whether or not to replace items in the destination that have the same name as items being duplicated Keyword argument routing_suppressed: Specifies whether or not to autoroute items (default is false). Only applies when copying to the system folder. Keyword argument _attributes: AppleEvent attribute dictionary Returns: to the duplicated object(s) """ _code = 'core' _subcode = 'clon' aetools.keysubst(_arguments, self._argmap_duplicate) _arguments['----'] = _object aetools.enumsubst(_arguments, 'alrp', _Enum_bool) aetools.enumsubst(_arguments, 'rout', _Enum_bool) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----']
def create(self, _object, _attributes={}, **_arguments): """create: Create a new Disk Copy document Required argument: the name of the volume to create Keyword argument saving_as: the disk image to be created Keyword argument logical_blocks: the number of logical blocks Keyword argument zeroing: Should all blocks on the disk be set to zero? Keyword argument leave_image_mounted: Should the image be mounted after it is created? Keyword argument filesystem: file system to use (Mac OS Standard/compatible, Mac OS Enhanced) Keyword argument _attributes: AppleEvent attribute dictionary Returns: a reference to newly created disk image (or newly mounted disk) """ _code = 'ddsk' _subcode = 'Crea' aetools.keysubst(_arguments, self._argmap_create) _arguments['----'] = _object aetools.enumsubst(_arguments, 'SvAs', _Enum_fss_) aetools.enumsubst(_arguments, 'Blks', _Enum_long) aetools.enumsubst(_arguments, 'Zero', _Enum_bool) aetools.enumsubst(_arguments, 'Moun', _Enum_bool) aetools.enumsubst(_arguments, 'Fsys', _Enum_Fsys) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----']
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) return _arguments['----'] if _arguments.has_key('----') else None
def close(self, _object, _attributes={}, **_arguments): _code = 'core' _subcode = 'clos' aetools.keysubst(_arguments, self._argmap_close) _arguments['----'] = _object aetools.enumsubst(_arguments, 'savo', _Enum_savo) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) return _arguments['----'] if _arguments.has_key('----') else None
def open(self, _object, _attributes={}, **_arguments): _code = 'aevt' _subcode = 'odoc' aetools.keysubst(_arguments, self._argmap_open) _arguments['----'] = _object aetools.enumsubst(_arguments, 'Conv', _Enum_Conv) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) return _arguments['----'] if _arguments.has_key('----') else None
def quit(self, _no_object=None, _attributes={}, **_arguments): _code = 'aevt' _subcode = 'quit' aetools.keysubst(_arguments, self._argmap_quit) if _no_object is not None: raise TypeError, 'No direct arg expected' aetools.enumsubst(_arguments, 'savo', _Enum_savo) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) return _arguments['----'] if _arguments.has_key('----') else None
def mount(self, _object, _attributes={}, **_arguments): """mount: Mounts an Disk Copy image as a disk volume Required argument: a reference to the disk image to be mounted Keyword argument access_mode: the access mode for mounted volume (default is "any", i.e. best possible) Keyword argument checksum_verification: Verify the checksum before mounting? Keyword argument signature_verification: Verify the DigiSignŽ signature before mounting? Keyword argument RAM_caching: Cache the disk image in RAM? (if omitted, don't cache) Keyword argument _attributes: AppleEvent attribute dictionary Returns: a reference to mounted disk """ _code = 'ddsk' _subcode = 'Moun' aetools.keysubst(_arguments, self._argmap_mount) _arguments['----'] = _object aetools.enumsubst(_arguments, 'Acss', _Enum_Acss) aetools.enumsubst(_arguments, 'VChk', _Enum_bool) aetools.enumsubst(_arguments, 'VSig', _Enum_bool) aetools.enumsubst(_arguments, 'Cach', _Enum_bool) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----']
def quit(self, _object, _attributes = {}, **_arguments): """quit: Quit an application. Required argument: the object for the command Keyword argument saving: Specifies whether changes should be saved before quitting. Keyword argument _attributes: AppleEvent attribute dictionary """ _code = 'aevt' _subcode = 'quit' aetools.keysubst(_arguments, self._argmap_quit) _arguments['----'] = _object aetools.enumsubst(_arguments, 'savo', _Enum_savo) _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['----']
def open(self, _object, _attributes = {}, **_arguments): """open: Open the specified object(s) Required argument: list of objects to open Keyword argument converting: Whether to convert project to latest version (yes/no; default is ask). Keyword argument _attributes: AppleEvent attribute dictionary """ _code = 'aevt' _subcode = 'odoc' aetools.keysubst(_arguments, self._argmap_open) _arguments['----'] = _object aetools.enumsubst(_arguments, 'Conv', _Enum_Conv) _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['----']
def Go(self, _object, _attributes = {}, **_arguments): """Go: navigate a window: back, forward, again(reload), home) Required argument: window Keyword argument direction: undocumented, typecode 'dire' Keyword argument _attributes: AppleEvent attribute dictionary """ _code = 'MOSS' _subcode = 'gogo' aetools.keysubst(_arguments, self._argmap_Go) _arguments['----'] = _object aetools.enumsubst(_arguments, 'dire', _Enum_dire) _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['----']
def close(self, _object, _attributes={}, **_arguments): """close: Close an object Required argument: the object to close Keyword argument saving: specifies whether changes should be saved before closing Keyword argument saving_in: the file or alias in which to save the object Keyword argument _attributes: AppleEvent attribute dictionary """ _code = "core" _subcode = "clos" aetools.keysubst(_arguments, self._argmap_close) _arguments["----"] = _object aetools.enumsubst(_arguments, "savo", _Enum_savo) _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["----"]
def close(self, _object, _attributes = {}, **_arguments): """close: Close an object. Required argument: the object for the command Keyword argument saving_in: The file in which to save the object. Keyword argument saving: Specifies whether changes should be saved before closing. Keyword argument _attributes: AppleEvent attribute dictionary """ _code = 'core' _subcode = 'clos' aetools.keysubst(_arguments, self._argmap_close) _arguments['----'] = _object aetools.enumsubst(_arguments, 'savo', _Enum_savo) _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['----']
def Go(self, _object, _attributes={}, **_arguments): """Go: navigate a window: back, forward, again(reload), home) Required argument: window Keyword argument direction: undocumented, typecode 'dire' Keyword argument _attributes: AppleEvent attribute dictionary """ _code = 'MOSS' _subcode = 'gogo' aetools.keysubst(_arguments, self._argmap_Go) _arguments['----'] = _object aetools.enumsubst(_arguments, 'dire', _Enum_dire) _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['----']
def quit(self, _no_object = None, _attributes = {}, **_arguments): """quit: Quit an application Keyword argument saving: specifies whether to save currently open documents Keyword argument _attributes: AppleEvent attribute dictionary """ _code = 'aevt' _subcode = 'quit' aetools.keysubst(_arguments, self._argmap_quit) if _no_object is not None: raise TypeError, 'No direct arg expected' aetools.enumsubst(_arguments, 'savo', _Enum_savo) _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['----'] else: return
def do_folder_action(self, _object, _attributes = {}, **_arguments): """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 """ _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['----']
def quit(self, _no_object=None, _attributes={}, **_arguments): """quit: Quit the Finder (direct parameter ignored) Keyword argument saving: specifies whether to save currently open documents (not supported by Finder) Keyword argument _attributes: AppleEvent attribute dictionary """ _code = 'aevt' _subcode = 'quit' aetools.keysubst(_arguments, self._argmap_quit) if _no_object != None: raise TypeError, 'No direct arg expected' aetools.enumsubst(_arguments, 'savo', _Enum_savo) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----']
def sign_image(self, _object, _attributes={}, **_arguments): """sign image: Add a DigiSignŽ signature to a Disk Copy document Required argument: the disk image to be signed Keyword argument using_signer: a reference to signer file to use Keyword argument _attributes: AppleEvent attribute dictionary """ _code = "ddsk" _subcode = "Asig" aetools.keysubst(_arguments, self._argmap_sign_image) _arguments["----"] = _object aetools.enumsubst(_arguments, "Sinr", _Enum_alis) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key("errn"): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key("----"): return _arguments["----"]
def log(self, _object, _attributes={}, **_arguments): """log: Add a string to the log window Required argument: the string to add to the log window Keyword argument time_stamp: Should the log entry be time-stamped? (false if not supplied) Keyword argument _attributes: AppleEvent attribute dictionary """ _code = "UTIL" _subcode = "LOG " aetools.keysubst(_arguments, self._argmap_log) _arguments["----"] = _object aetools.enumsubst(_arguments, "TSMP", _Enum_bool) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key("errn"): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key("----"): return _arguments["----"]
def select_disk_image_or_DiskScript(self, _no_object=None, _attributes={}, **_arguments): """select disk image or DiskScript: Prompt the user to select a disk image or DiskScript Keyword argument with_prompt: the prompt string to be displayed Keyword argument _attributes: AppleEvent attribute dictionary Returns: a reference to disk image or a DiskScript """ _code = "UTIL" _subcode = "SEL3" aetools.keysubst(_arguments, self._argmap_select_disk_image_or_DiskScript) if _no_object != None: raise TypeError, "No direct arg expected" aetools.enumsubst(_arguments, "SELp", _Enum_TEXT) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key("errn"): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key("----"): return _arguments["----"]
def select_floppy_disk_image(self, _no_object=None, _attributes={}, **_arguments): """select floppy disk image: Prompt the user to select a floppy disk image Keyword argument with_prompt: the prompt string to be displayed Keyword argument _attributes: AppleEvent attribute dictionary Returns: a reference to a floppy disk image """ _code = 'UTIL' _subcode = 'SEL4' aetools.keysubst(_arguments, self._argmap_select_floppy_disk_image) if _no_object is not None: raise TypeError, 'No direct arg expected' aetools.enumsubst(_arguments, 'SELp', _Enum_TEXT) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----']
def check_image(self, _object, _attributes={}, **_arguments): """check image: Check the disk imageÕs internal data structures for any inconsistencies. Works on NDIF, Disk Copy 4.2, DARTŽ, or DiskSet images. Required argument: the disk image to be verified Keyword argument details: Should the disk image details be displayed? Keyword argument _attributes: AppleEvent attribute dictionary Returns: a record containing a boolean (true/false) value if the image passes consistency tests, and the numbers of warnings and errors """ _code = "ddsk" _subcode = "Chek" aetools.keysubst(_arguments, self._argmap_check_image) _arguments["----"] = _object aetools.enumsubst(_arguments, "ChDe", _Enum_bool) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key("errn"): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key("----"): return _arguments["----"]
def create_a_floppy_from(self, _object, _attributes={}, **_arguments): """create a floppy from: create a floppy disk from a Disk Copy document Required argument: the disk image to make a floppy from Keyword argument signature_verification: Should the DigiSignŽ signature be verified before creating a floppy disk? Keyword argument erase_confirmation: Should the user be asked to confirm the erasure of the previous contents of floppy disks? Keyword argument make_multiple_floppies: Should the user be prompted to create multiple floppy disks? Keyword argument _attributes: AppleEvent attribute dictionary """ _code = 'ddsk' _subcode = 'Bfpy' aetools.keysubst(_arguments, self._argmap_create_a_floppy_from) _arguments['----'] = _object aetools.enumsubst(_arguments, 'VSig', _Enum_bool) aetools.enumsubst(_arguments, 'Cfrm', _Enum_bool) aetools.enumsubst(_arguments, 'Mult', _Enum_bool) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----']
def move(self, _object, _attributes={}, **_arguments): """move: Move object(s) to a new location Required argument: the object(s) to move Keyword argument to: the new location for the object(s) Keyword argument replacing: Specifies whether or not to replace items in the destination that have the same name as items being moved Keyword argument positioned_at: Gives a list (in local window coordinates) of positions for the destination items Keyword argument routing_suppressed: Specifies whether or not to autoroute items (default is false). Only applies when moving to the system folder. Keyword argument _attributes: AppleEvent attribute dictionary Returns: to the object(s) after they have been moved """ _code = 'core' _subcode = 'move' aetools.keysubst(_arguments, self._argmap_move) _arguments['----'] = _object aetools.enumsubst(_arguments, 'alrp', _Enum_bool) aetools.enumsubst(_arguments, 'mvpl', _Enum_list) aetools.enumsubst(_arguments, 'rout', _Enum_bool) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----']
def move(self, _object, _attributes={}, **_arguments): """move: Move object(s) to a new location Required argument: the object(s) to move Keyword argument to: the new location for the object(s) Keyword argument replacing: Specifies whether or not to replace items in the destination that have the same name as items being moved Keyword argument positioned_at: Gives a list (in local window coordinates) of positions for the destination items Keyword argument routing_suppressed: Specifies whether or not to autoroute items (default is false). Only applies when moving to the system folder. Keyword argument _attributes: AppleEvent attribute dictionary Returns: to the object(s) after they have been moved """ _code = "core" _subcode = "move" aetools.keysubst(_arguments, self._argmap_move) _arguments["----"] = _object aetools.enumsubst(_arguments, "alrp", _Enum_bool) aetools.enumsubst(_arguments, "mvpl", _Enum_list) aetools.enumsubst(_arguments, "rout", _Enum_bool) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.get("errn", 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key("----"): return _arguments["----"]
def create_SMI(self, _object, _attributes={}, **_arguments): """create SMI: Creates a self-mounting image (SMI) from a list of NDIF disk images Required argument: the self-mounting image to create Keyword argument source_images: a list of references to sources images Keyword argument launching_application: the path to an application to launch Keyword argument launching_document: the path to a document to open Keyword argument version_string: sets the 'vers' 1 resource of the self-mounting image Keyword argument checksum_verification: Should the checksum of the source images be verified before creating the SMI? Keyword argument signature_verification: Should the DigiSignŽ signature of the source images be verified before creating the SMI? Keyword argument image_signing: Should the SMI be given a digital signature when it is created? Keyword argument _attributes: AppleEvent attribute dictionary Returns: a reference to the self-mounting image created """ _code = 'ddsk' _subcode = 'MSMI' aetools.keysubst(_arguments, self._argmap_create_SMI) _arguments['----'] = _object aetools.enumsubst(_arguments, 'VChk', _Enum_bool) aetools.enumsubst(_arguments, 'VSig', _Enum_bool) aetools.enumsubst(_arguments, 'SImg', _Enum_bool) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----']
def close(self, _object, _attributes={}, **_arguments): """close: Close an object Required argument: the objects to close Keyword argument saving: specifies whether or not changes should be saved before closing Keyword argument _in: the file in which to save the object Keyword argument _attributes: AppleEvent attribute dictionary """ _code = 'core' _subcode = 'clos' aetools.keysubst(_arguments, self._argmap_close) _arguments['----'] = _object aetools.enumsubst(_arguments, 'savo', _Enum_savo) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if 'errn' in _arguments: raise aetools.Error(aetools.decodeerror(_arguments)) # XXXX Optionally decode result if '----' in _arguments: return _arguments['----']
def execute_DiskScript(self, _object, _attributes={}, **_arguments): """execute DiskScript: Executes a Disk Copy-specific DiskScript Required argument: a reference to the DiskScript to execute Keyword argument checksum_verification: Should checksums be verified when mounting images referenced in the DiskScript? Keyword argument signature_verification: Should the DigiSignŽ signature of the DiskScript and the images it references be verified? Keyword argument _attributes: AppleEvent attribute dictionary """ _code = "ddsk" _subcode = "XEQd" aetools.keysubst(_arguments, self._argmap_execute_DiskScript) _arguments["----"] = _object aetools.enumsubst(_arguments, "VChk", _Enum_bool) aetools.enumsubst(_arguments, "VSig", _Enum_bool) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key("errn"): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key("----"): return _arguments["----"]
"""Suite Utility Events: Commands that allow the user to select Disk Copy files
"""Suite Mozilla suite: Experimental Mozilla suite
"""Suite Special Events: Commands for mounting Disk Copy images
def save(self, _object, _attributes={}, **_arguments): """save: Save an object Required argument: the source object Keyword argument _in: the target object Keyword argument using_format: the format for the target Keyword argument checksum_verification: Should the checksum be verified before saving? Keyword argument signature_verification: Should the DigiSignŽ signature be verified before saving? Keyword argument image_signing: Should the image be signed? Keyword argument leave_image_mounted: Should the image be mounted after saving? Keyword argument percent_free_space: percent free space to reserve (for image folder operation, 0-255%) Keyword argument logical_blocks: number of logical blocks in the image (for image folder operation) Keyword argument zeroing: Should all the blocks in the image be set to zeros? (for image folder operation) Keyword argument _attributes: AppleEvent attribute dictionary Returns: the result of the save operation """ _code = 'core' _subcode = 'save' aetools.keysubst(_arguments, self._argmap_save) _arguments['----'] = _object aetools.enumsubst(_arguments, 'kfil', _Enum_obj_) aetools.enumsubst(_arguments, 'SvAs', _Enum_SvAs) aetools.enumsubst(_arguments, 'VChk', _Enum_bool) aetools.enumsubst(_arguments, 'VSig', _Enum_bool) aetools.enumsubst(_arguments, 'SImg', _Enum_bool) aetools.enumsubst(_arguments, 'Moun', _Enum_bool) aetools.enumsubst(_arguments, 'Slop', _Enum_long) aetools.enumsubst(_arguments, 'Blks', _Enum_long) aetools.enumsubst(_arguments, 'Zero', _Enum_bool) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----']
"""Suite Standard Suite: Common terms for most applications
"""Suite Required: Terms that every application should support
"""Suite Standard Suite: Common terms that most applications should support