[Python-checkins] python/dist/src/Lib/plat-mac/lib-scriptpackages/SystemEvents Disk_2d_Folder_2d_File_Suite.py,NONE,1.1 Folder_Actions_Suite.py,NONE,1.1 Hidden_Suite.py,NONE,1.1 Login_Items_Suite.py,NONE,1.1 Power_Suite.py,NONE,1.1 Processes_Suite.py,NONE,1.1 Standard_Suite.py,NONE,1.1 System_Events_Suite.py,NONE,1.1 Text_Suite.py,NONE,1.1 __init__.py,NONE,1.1

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Sun, 30 Mar 2003 14:41:54 -0800


Update of /cvsroot/python/python/dist/src/Lib/plat-mac/lib-scriptpackages/SystemEvents
In directory sc8-pr-cvs1:/tmp/cvs-serv17412/SystemEvents

Added Files:
	Disk_2d_Folder_2d_File_Suite.py Folder_Actions_Suite.py 
	Hidden_Suite.py Login_Items_Suite.py Power_Suite.py 
	Processes_Suite.py Standard_Suite.py System_Events_Suite.py 
	Text_Suite.py __init__.py 
Log Message:
Regenerated again, now clases are sorted by code, and with synonyms after
the primary name.


--- NEW FILE: Disk_2d_Folder_2d_File_Suite.py ---
"""Suite Disk-Folder-File Suite: Terms and Events for controlling Disks, Folders, and Files
Level 1, version 1

Generated from /System/Library/CoreServices/System Events.app
AETE/AEUT resource version 1/0, language 0, script 0
"""

import aetools
import MacOS

_code = 'cdis'

class Disk_2d_Folder_2d_File_Suite_Events:

	_argmap_move = {
		'to' : 'insh',
	}

	def move(self, _object, _attributes={}, **_arguments):
		"""move: Move disk item(s) to a new location.
		Required argument: the object for the command
		Keyword argument to: The new location for the disk item(s).
		Keyword argument _attributes: AppleEvent attribute dictionary
		Returns: the reply for the command
		"""
		_code = 'core'
		_subcode = 'move'

		aetools.keysubst(_arguments, self._argmap_move)
		_arguments['----'] = _object


		_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['----']


class alias(aetools.ComponentItem):
	"""alias - An alias in the file system """
	want = 'alis'
class _3c_Inheritance_3e_(aetools.NProperty):
	"""<Inheritance> - All of the properties of the superclass. """
	which = 'c@#^'
	want = 'cobj'
class properties(aetools.NProperty):
	"""properties - every property of the alias """
	which = 'pALL'
	want = '****'
class version(aetools.NProperty):
	"""version - the version of the application bundle referenced by the alias (visible at the bottom of the "Get Info" window) """
	which = 'vers'
	want = 'utxt'
#        element 'alis' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'cfol' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'cobj' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'file' as ['name', 'indx', 'rele', 'rang', 'test']

aliases = alias

class disk(aetools.ComponentItem):
	"""disk - A disk in the file system """
	want = 'cdis'
class capacity(aetools.NProperty):
	"""capacity - the total number of bytes (free or used) on the disk """
	which = 'capa'
	want = 'magn'
class ejectable(aetools.NProperty):
	"""ejectable - Can the media be ejected (floppies, CD's, and so on)? """
	which = 'isej'
	want = 'bool'
class format(aetools.NProperty):
	"""format - the file system format of this disk """
	which = 'dfmt'
	want = 'edfm'
class free_space(aetools.NProperty):
	"""free space - the number of free bytes left on the disk """
	which = 'frsp'
	want = 'magn'
class ignore_privileges(aetools.NProperty):
	"""ignore privileges - Ignore permissions on this disk? """
	which = 'igpr'
	want = 'bool'
class local_volume(aetools.NProperty):
	"""local volume - Is the media a local volume (as opposed to a file server)? """
	which = 'isrv'
	want = 'bool'
class startup(aetools.NProperty):
	"""startup - Is this disk the boot disk? """
	which = 'istd'
	want = 'bool'
#        element 'alis' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'cfol' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'cobj' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'file' as ['name', 'indx', 'rele', 'rang', 'test']

disks = disk

class folder(aetools.ComponentItem):
	"""folder - A folder in the file system """
	want = 'cfol'
#        element 'alis' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'cfol' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'cobj' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'file' as ['name', 'indx', 'rele', 'rang', 'test']

folders = folder

class item(aetools.ComponentItem):
	"""item - An item in the file system """
	want = 'cobj'
class POSIX_path(aetools.NProperty):
	"""POSIX path - the POSIX file system path of the item """
	which = 'posx'
	want = 'utxt'
class busy_status(aetools.NProperty):
	"""busy status - Is the item busy? """
	which = 'busy'
	want = 'bool'
class creation_date(aetools.NProperty):
	"""creation date - the date on which the item was created """
	which = 'ascd'
	want = '****'
class displayed_name(aetools.NProperty):
	"""displayed name - the name of the item as displayed in the User Interface """
	which = 'dnam'
	want = 'utxt'
class modification_date(aetools.NProperty):
	"""modification date - the date on which the item was last modified """
	which = 'asmo'
	want = '****'
class name(aetools.NProperty):
	"""name - the name of the item """
	which = 'pnam'
	want = 'utxt'
class name_extension(aetools.NProperty):
	"""name extension - the extension portion of the name """
	which = 'extn'
	want = 'utxt'
class package_folder(aetools.NProperty):
	"""package folder - Is the item a package? """
	which = 'pkgf'
	want = 'bool'
class path(aetools.NProperty):
	"""path - the file system path of the item """
	which = 'ppth'
	want = 'utxt'
class url(aetools.NProperty):
	"""url - the url of the item """
	which = 'url '
	want = 'utxt'
class visible(aetools.NProperty):
	"""visible - Is the item visible? """
	which = 'pvis'
	want = 'bool'
class volume(aetools.NProperty):
	"""volume - the volume on which the item resides """
	which = 'volu'
	want = 'utxt'

items = item

class file(aetools.ComponentItem):
	"""file - A file in the file system """
	want = 'file'
class creator_type(aetools.NProperty):
	"""creator type - the OSType identifying the application that created the file """
	which = 'fcrt'
	want = 'utxt'
class file_type(aetools.NProperty):
	"""file type - the OSType identifying the type of data contained in the file """
	which = 'asty'
	want = 'utxt'
class physical_size(aetools.NProperty):
	"""physical size - the actual space used by the file on disk """
	which = 'phys'
	want = '****'
class product_version(aetools.NProperty):
	"""product version - the version of the product (visible at the top of the "Get Info" window) """
	which = 'ver2'
	want = 'utxt'
class size(aetools.NProperty):
	"""size - the logical size of the file """
	which = 'ptsz'
	want = '****'
class stationery(aetools.NProperty):
	"""stationery - Is the file a stationery pad? """
	which = 'pspd'
	want = 'bool'

files = file
alias._superclassnames = ['item']
alias._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'properties' : properties,
	'version' : version,
}
alias._privelemdict = {
	'alias' : alias,
	'file' : file,
	'folder' : folder,
	'item' : item,
}
disk._superclassnames = ['item']
disk._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'capacity' : capacity,
	'ejectable' : ejectable,
	'format' : format,
	'free_space' : free_space,
	'ignore_privileges' : ignore_privileges,
	'local_volume' : local_volume,
	'properties' : properties,
	'startup' : startup,
}
disk._privelemdict = {
	'alias' : alias,
	'file' : file,
	'folder' : folder,
	'item' : item,
}
folder._superclassnames = ['item']
folder._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'properties' : properties,
}
folder._privelemdict = {
	'alias' : alias,
	'file' : file,
	'folder' : folder,
	'item' : item,
}
item._superclassnames = []
item._privpropdict = {
	'POSIX_path' : POSIX_path,
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'busy_status' : busy_status,
	'creation_date' : creation_date,
	'displayed_name' : displayed_name,
	'modification_date' : modification_date,
	'name' : name,
	'name_extension' : name_extension,
	'package_folder' : package_folder,
	'path' : path,
	'properties' : properties,
	'url' : url,
	'visible' : visible,
	'volume' : volume,
}
item._privelemdict = {
}
file._superclassnames = ['item']
file._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'creator_type' : creator_type,
	'file_type' : file_type,
	'physical_size' : physical_size,
	'product_version' : product_version,
	'properties' : properties,
	'size' : size,
	'stationery' : stationery,
	'version' : version,
}
file._privelemdict = {
}
_Enum_edfm = {
	'MS_2d_DOS_format' : 'dfms',	# MS-DOS format
	'Apple_Photo_format' : 'dfph',	# Apple Photo format
	'ISO_9660_format' : 'df96',	# ISO 9660 format
	'QuickTake_format' : 'dfqt',	# QuickTake format
	'AppleShare_format' : 'dfas',	# AppleShare format
	'High_Sierra_format' : 'dfhs',	# High Sierra format
	'Mac_OS_Extended_format' : 'dfh+',	# Mac OS Extended format
	'UDF_format' : 'dfud',	# UDF format
	'unknown_format' : 'df??',	# unknown format
	'audio_format' : 'dfau',	# audio format
	'Mac_OS_format' : 'dfhf',	# Mac OS format
	'UFS_format' : 'dfuf',	# UFS format
	'NFS_format' : 'dfnf',	# NFS format
	'ProDOS_format' : 'dfpr',	# ProDOS format
	'WebDAV_format' : 'dfwd',	# WebDAV format
}


#
# Indices of types declared in this module
#
_classdeclarations = {
	'alis' : alias,
	'cdis' : disk,
	'cfol' : folder,
	'cobj' : item,
	'file' : file,
}

_propdeclarations = {
	'ascd' : creation_date,
	'asmo' : modification_date,
	'asty' : file_type,
	'busy' : busy_status,
	'c@#^' : _3c_Inheritance_3e_,
	'capa' : capacity,
	'dfmt' : format,
	'dnam' : displayed_name,
	'extn' : name_extension,
	'fcrt' : creator_type,
	'frsp' : free_space,
	'igpr' : ignore_privileges,
	'isej' : ejectable,
	'isrv' : local_volume,
	'istd' : startup,
	'pALL' : properties,
	'phys' : physical_size,
	'pkgf' : package_folder,
	'pnam' : name,
	'posx' : POSIX_path,
	'ppth' : path,
	'pspd' : stationery,
	'ptsz' : size,
	'pvis' : visible,
	'url ' : url,
	'ver2' : product_version,
	'vers' : version,
	'volu' : volume,
}

_compdeclarations = {
}

_enumdeclarations = {
	'edfm' : _Enum_edfm,
}

--- NEW FILE: Folder_Actions_Suite.py ---
"""Suite Folder Actions Suite: Terms and Events for controlling Folder Actions
Level 1, version 1

Generated from /System/Library/CoreServices/System Events.app
AETE/AEUT resource version 1/0, language 0, script 0
"""

import aetools
import MacOS

_code = 'faco'

class Folder_Actions_Suite_Events:

	_argmap_attach_action_to = {
		'using' : 'faal',
	}

	def attach_action_to(self, _object, _attributes={}, **_arguments):
		"""attach action to: Attach an action to a folder
		Required argument: the object for the command
		Keyword argument using: a file containing the script to attach
		Keyword argument _attributes: AppleEvent attribute dictionary
		Returns: the reply for the command
		"""
		_code = 'faco'
		_subcode = 'atfa'

		aetools.keysubst(_arguments, self._argmap_attach_action_to)
		_arguments['----'] = _object


		_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 attached_scripts(self, _object, _attributes={}, **_arguments):
		"""attached scripts: List the actions attached to a folder
		Required argument: the object for the command
		Keyword argument _attributes: AppleEvent attribute dictionary
		Returns: the reply for the command
		"""
		_code = 'faco'
		_subcode = 'lact'

		if _arguments: raise TypeError, 'No optional args expected'
		_arguments['----'] = _object


		_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['----']

	_argmap_do_folder_action = {
		'with_window_size' : 'fnsz',
		'with_item_list' : 'flst',
		'folder_action_code' : 'actn',
	}

	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)
		# XXXX Optionally decode result
		if _arguments.has_key('----'):
			return _arguments['----']

	_argmap_edit_action_of = {
		'using_action_name' : 'snam',
		'using_action_number' : 'indx',
	}

	def edit_action_of(self, _object, _attributes={}, **_arguments):
		"""edit action of: Edit as action of a folder
		Required argument: the object for the command
		Keyword argument using_action_name: ...or the name of the action to edit
		Keyword argument using_action_number: the index number of the action to edit...
		Keyword argument _attributes: AppleEvent attribute dictionary
		Returns: the reply for the command
		"""
		_code = 'faco'
		_subcode = 'edfa'

		aetools.keysubst(_arguments, self._argmap_edit_action_of)
		_arguments['----'] = _object


		_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['----']

	_argmap_remove_action_from = {
		'using_action_name' : 'snam',
		'using_action_number' : 'indx',
	}

	def remove_action_from(self, _object, _attributes={}, **_arguments):
		"""remove action from: Remove a folder action from a folder
		Required argument: the object for the command
		Keyword argument using_action_name: ...or the name of the action to remove
		Keyword argument using_action_number: the index number of the action to remove...
		Keyword argument _attributes: AppleEvent attribute dictionary
		Returns: the reply for the command
		"""
		_code = 'faco'
		_subcode = 'rmfa'

		aetools.keysubst(_arguments, self._argmap_remove_action_from)
		_arguments['----'] = _object


		_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['----']


class folder_action(aetools.ComponentItem):
	"""folder action - An action attached to a folder in the file system """
	want = 'foac'
class _3c_Inheritance_3e_(aetools.NProperty):
	"""<Inheritance> - All of the properties of the superclass. """
	which = 'c@#^'
	want = 'cobj'
class enabled(aetools.NProperty):
	"""enabled - Is the folder action enabled? """
	which = 'enaB'
	want = 'bool'
class name(aetools.NProperty):
	"""name - the name of the folder action, which is also the name of the folder """
	which = 'pnam'
	want = 'utxt'
class path(aetools.NProperty):
	"""path - the path to the folder to which the folder action applies """
	which = 'ppth'
	want = '****'
class properties(aetools.NProperty):
	"""properties - every property of the folder action """
	which = 'pALL'
	want = '****'
class volume(aetools.NProperty):
	"""volume - the volume on which the folder action resides """
	which = 'volu'
	want = 'utxt'
#        element 'scpt' as ['name', 'indx', 'rele', 'rang', 'test']

folder_actions = folder_action

class script(aetools.ComponentItem):
	"""script - A script invoked by a folder action """
	want = 'scpt'
class POSIX_path(aetools.NProperty):
	"""POSIX path - the POSIX file system path of the disk """
	which = 'posx'
	want = 'utxt'

scripts = script
import Standard_Suite
folder_action._superclassnames = ['item']
folder_action._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'enabled' : enabled,
	'name' : name,
	'path' : path,
	'properties' : properties,
	'volume' : volume,
}
folder_action._privelemdict = {
	'script' : script,
}
script._superclassnames = ['item']
script._privpropdict = {
	'POSIX_path' : POSIX_path,
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'name' : name,
	'path' : path,
	'properties' : properties,
}
script._privelemdict = {
}
_Enum_actn = {
	'items_added' : 'fget',	# items added
	'items_removed' : 'flos',	# items removed
	'window_closed' : 'fclo',	# window closed
	'window_moved' : 'fsiz',	# window moved
	'window_opened' : 'fopn',	# window opened
}


#
# Indices of types declared in this module
#
_classdeclarations = {
	'foac' : folder_action,
	'scpt' : script,
}

_propdeclarations = {
	'c@#^' : _3c_Inheritance_3e_,
	'enaB' : enabled,
	'pALL' : properties,
	'pnam' : name,
	'posx' : POSIX_path,
	'ppth' : path,
	'volu' : volume,
}

_compdeclarations = {
}

_enumdeclarations = {
	'actn' : _Enum_actn,
}

--- NEW FILE: Hidden_Suite.py ---
"""Suite Hidden Suite: Hidden Terms and Events for controlling the System Events application
Level 1, version 1

Generated from /System/Library/CoreServices/System Events.app
AETE/AEUT resource version 1/0, language 0, script 0
"""

import aetools
import MacOS

_code = 'tpnm'

from StdSuites.Type_Names_Suite import *
class Hidden_Suite_Events(Type_Names_Suite_Events):

	def do_script(self, _object, _attributes={}, **_arguments):
		"""do script: Execute an OSA script.
		Required argument: the object for the command
		Keyword argument _attributes: AppleEvent attribute dictionary
		"""
		_code = 'misc'
		_subcode = 'dosc'

		if _arguments: raise TypeError, 'No optional args expected'
		_arguments['----'] = _object


		_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['----']


#
# Indices of types declared in this module
#
_classdeclarations = {
}

_propdeclarations = {
}

_compdeclarations = {
}

_enumdeclarations = {
}

--- NEW FILE: Login_Items_Suite.py ---
"""Suite Login Items Suite: Terms and Events for controlling the Login Items application
Level 1, version 1

Generated from /System/Library/CoreServices/System Events.app
AETE/AEUT resource version 1/0, language 0, script 0
"""

import aetools
import MacOS

_code = 'logi'

class Login_Items_Suite_Events:

	pass


class login_item(aetools.ComponentItem):
	"""login item - an item to be launched or opened at login """
	want = 'logi'
class _3c_Inheritance_3e_(aetools.NProperty):
	"""<Inheritance> - All of the properties of the superclass. """
	which = 'c@#^'
	want = 'cobj'
class hidden(aetools.NProperty):
	"""hidden - Is the Login Item hidden when launched? """
	which = 'hidn'
	want = 'bool'
class kind(aetools.NProperty):
	"""kind - the file type of the Login Item """
	which = 'kind'
	want = 'utxt'
class name(aetools.NProperty):
	"""name - the name of the Login Item """
	which = 'pnam'
	want = 'utxt'
class path(aetools.NProperty):
	"""path - the file system path to the Login Item """
	which = 'ppth'
	want = 'utxt'

login_items = login_item
import Standard_Suite
login_item._superclassnames = ['item']
login_item._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'hidden' : hidden,
	'kind' : kind,
	'name' : name,
	'path' : path,
}
login_item._privelemdict = {
}

#
# Indices of types declared in this module
#
_classdeclarations = {
	'logi' : login_item,
}

_propdeclarations = {
	'c@#^' : _3c_Inheritance_3e_,
	'hidn' : hidden,
	'kind' : kind,
	'pnam' : name,
	'ppth' : path,
}

_compdeclarations = {
}

_enumdeclarations = {
}

--- NEW FILE: Power_Suite.py ---
"""Suite Power Suite: Terms and Events for controlling System power
Level 1, version 1

Generated from /System/Library/CoreServices/System Events.app
AETE/AEUT resource version 1/0, language 0, script 0
"""

import aetools
import MacOS

_code = 'powr'

class Power_Suite_Events:

	def restart(self, _object, _attributes={}, **_arguments):
		"""restart: Restart the computer
		Required argument: the object for the command
		Keyword argument _attributes: AppleEvent attribute dictionary
		"""
		_code = 'fndr'
		_subcode = 'rest'

		if _arguments: raise TypeError, 'No optional args expected'
		_arguments['----'] = _object


		_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 shut_down(self, _object, _attributes={}, **_arguments):
		"""shut down: Shut Down the computer
		Required argument: the object for the command
		Keyword argument _attributes: AppleEvent attribute dictionary
		"""
		_code = 'fndr'
		_subcode = 'shut'

		if _arguments: raise TypeError, 'No optional args expected'
		_arguments['----'] = _object


		_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 sleep(self, _object, _attributes={}, **_arguments):
		"""sleep: Put the computer to sleep
		Required argument: the object for the command
		Keyword argument _attributes: AppleEvent attribute dictionary
		"""
		_code = 'fndr'
		_subcode = 'slep'

		if _arguments: raise TypeError, 'No optional args expected'
		_arguments['----'] = _object


		_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['----']


#
# Indices of types declared in this module
#
_classdeclarations = {
}

_propdeclarations = {
}

_compdeclarations = {
}

_enumdeclarations = {
}

--- NEW FILE: Processes_Suite.py ---
"""Suite Processes Suite: Terms and Events for controlling Processes
Level 1, version 1

Generated from /System/Library/CoreServices/System Events.app
AETE/AEUT resource version 1/0, language 0, script 0
"""

import aetools
import MacOS

_code = 'prcs'

class Processes_Suite_Events:

	def cancel(self, _object, _attributes={}, **_arguments):
		"""cancel: cause the target process to behave as if the UI element were cancelled
		Required argument: the object for the command
		Keyword argument _attributes: AppleEvent attribute dictionary
		"""
[...4682 lines suppressed...]
	'pnam' : name,
	'posn' : position,
	'ptsz' : size,
	'pusd' : partition_space_used,
	'pvis' : visible,
	'revt' : accepts_remote_events,
	'role' : role,
	'sbrl' : subrole,
	'selE' : selected,
	'titl' : title,
	'valu' : value,
}

_compdeclarations = {
}

_enumdeclarations = {
	'eMds' : _Enum_eMds,
	'eMky' : _Enum_eMky,
}

--- NEW FILE: Standard_Suite.py ---
"""Suite Standard Suite: Common classes and commands for most applications.
Level 1, version 1

Generated from /System/Library/CoreServices/System Events.app
AETE/AEUT resource version 1/0, language 0, script 0
"""

import aetools
import MacOS

_code = '????'

class Standard_Suite_Events:

	_argmap_close = {
		'saving_in' : 'kfil',
		'saving' : 'savo',
	}

	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)
		# XXXX Optionally decode result
		if _arguments.has_key('----'):
			return _arguments['----']

	_argmap_count = {
		'each' : 'kocl',
	}

	def count(self, _object, _attributes={}, **_arguments):
		"""count: Return the number of elements of a particular class within an object.
		Required argument: the object for the command
		Keyword argument each: The class of objects to be counted.
		Keyword argument _attributes: AppleEvent attribute dictionary
		Returns: the reply for the command
		"""
		_code = 'core'
		_subcode = 'cnte'

		aetools.keysubst(_arguments, self._argmap_count)
		_arguments['----'] = _object


		_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 delete(self, _object, _attributes={}, **_arguments):
		"""delete: Delete an object.
		Required argument: the object for the command
		Keyword argument _attributes: AppleEvent attribute dictionary
		"""
		_code = 'core'
		_subcode = 'delo'

		if _arguments: raise TypeError, 'No optional args expected'
		_arguments['----'] = _object


		_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['----']

	_argmap_duplicate = {
		'to' : 'insh',
		'with_properties' : 'prdt',
	}

	def duplicate(self, _object, _attributes={}, **_arguments):
		"""duplicate: Copy object(s) and put the copies at a new location.
		Required argument: the object for the command
		Keyword argument to: The location for the new object(s).
		Keyword argument with_properties: Properties to be set in the new duplicated object(s).
		Keyword argument _attributes: AppleEvent attribute dictionary
		"""
		_code = 'core'
		_subcode = 'clon'

		aetools.keysubst(_arguments, self._argmap_duplicate)
		_arguments['----'] = _object


		_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 exists(self, _object, _attributes={}, **_arguments):
		"""exists: Verify if an object exists.
		Required argument: the object for the command
		Keyword argument _attributes: AppleEvent attribute dictionary
		Returns: the reply for the command
		"""
		_code = 'core'
		_subcode = 'doex'

		if _arguments: raise TypeError, 'No optional args expected'
		_arguments['----'] = _object


		_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 get(self, _object, _attributes={}, **_arguments):
		"""get: Get the data for an object.
		Required argument: the object for the command
		Keyword argument _attributes: AppleEvent attribute dictionary
		Returns: the reply for the command
		"""
		_code = 'core'
		_subcode = 'getd'

		if _arguments: raise TypeError, 'No optional args expected'
		_arguments['----'] = _object


		_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['----']

	_argmap_make = {
		'at' : 'insh',
		'new' : 'kocl',
		'with_data' : 'data',
		'with_properties' : 'prdt',
	}

	def make(self, _no_object=None, _attributes={}, **_arguments):
		"""make: Make a new object.
		Keyword argument at: The location at which to insert the object.
		Keyword argument new: The class of the new object.
		Keyword argument with_data: The initial data for the object.
		Keyword argument with_properties: The initial values for properties of the object.
		Keyword argument _attributes: AppleEvent attribute dictionary
		Returns: the reply for the command
		"""
		_code = 'core'
		_subcode = 'crel'

		aetools.keysubst(_arguments, self._argmap_make)
		if _no_object != None: raise TypeError, 'No direct arg expected'


		_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['----']

	_argmap_move = {
		'to' : 'insh',
	}

	def move(self, _object, _attributes={}, **_arguments):
		"""move: Move object(s) to a new location.
		Required argument: the object for the command
		Keyword argument to: The new location for the object(s).
		Keyword argument _attributes: AppleEvent attribute dictionary
		"""
		_code = 'core'
		_subcode = 'move'

		aetools.keysubst(_arguments, self._argmap_move)
		_arguments['----'] = _object


		_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 open(self, _object=None, _attributes={}, **_arguments):
		"""open: Open an object.
		Required argument: list of objects
		Keyword argument _attributes: AppleEvent attribute dictionary
		"""
		_code = 'aevt'
		_subcode = 'odoc'

		if _arguments: raise TypeError, 'No optional args expected'
		_arguments['----'] = _object


		_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 print_(self, _object=None, _attributes={}, **_arguments):
		"""print: Print an object.
		Required argument: list of objects
		Keyword argument _attributes: AppleEvent attribute dictionary
		"""
		_code = 'aevt'
		_subcode = 'pdoc'

		if _arguments: raise TypeError, 'No optional args expected'
		_arguments['----'] = _object


		_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['----']

	_argmap_quit = {
		'saving' : 'savo',
	}

	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)
		# XXXX Optionally decode result
		if _arguments.has_key('----'):
			return _arguments['----']

	_argmap_save = {
		'in_' : 'kfil',
		'as' : 'fltp',
	}

	def save(self, _object, _attributes={}, **_arguments):
		"""save: Save an object.
		Required argument: the object for the command
		Keyword argument in_: The file in which to save the object.
		Keyword argument as: The file type in which to save the data.
		Keyword argument _attributes: AppleEvent attribute dictionary
		"""
		_code = 'core'
		_subcode = 'save'

		aetools.keysubst(_arguments, self._argmap_save)
		_arguments['----'] = _object


		_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['----']

	_argmap_set = {
		'to' : 'data',
	}

	def set(self, _object, _attributes={}, **_arguments):
		"""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
		"""
		_code = 'core'
		_subcode = 'setd'

		aetools.keysubst(_arguments, self._argmap_set)
		_arguments['----'] = _object


		_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['----']


class application(aetools.ComponentItem):
	"""application - An application's top level scripting object. """
	want = 'capp'
class _3c_Inheritance_3e_(aetools.NProperty):
	"""<Inheritance> - All of the properties of the superclass. """
	which = 'c@#^'
	want = 'cobj'
class frontmost(aetools.NProperty):
	"""frontmost - Is this the frontmost (active) application? """
	which = 'pisf'
	want = 'bool'
class name(aetools.NProperty):
	"""name - The name of the application. """
	which = 'pnam'
	want = 'utxt'
class version(aetools.NProperty):
	"""version - The version of the application. """
	which = 'vers'
	want = 'utxt'
#        element 'cwin' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'docu' as ['name', 'indx', 'rele', 'rang', 'test']

applications = application

class item(aetools.ComponentItem):
	"""item - A scriptable object. """
	want = 'cobj'
class class_(aetools.NProperty):
	"""class - The class of the object. """
	which = 'pcls'
	want = 'type'
class properties(aetools.NProperty):
	"""properties - All of the object's properties. """
	which = 'pALL'
	want = 'reco'

items = item

class color(aetools.ComponentItem):
	"""color - A color. """
	want = 'colr'

colors = color

class window(aetools.ComponentItem):
	"""window - A window. """
	want = 'cwin'
class bounds(aetools.NProperty):
	"""bounds - The bounding rectangle of the window. """
	which = 'pbnd'
	want = 'qdrt'
class closeable(aetools.NProperty):
	"""closeable - Whether the window has a close box. """
	which = 'hclb'
	want = 'bool'
class document(aetools.NProperty):
	"""document - The document whose contents are being displayed in the window. """
	which = 'docu'
	want = 'docu'
class floating(aetools.NProperty):
	"""floating - Whether the window floats. """
	which = 'isfl'
	want = 'bool'
class id(aetools.NProperty):
	"""id - The unique identifier of the window. """
	which = 'ID  '
	want = 'long'
class index(aetools.NProperty):
	"""index - The index of the window in the back-to-front window ordering. """
	which = 'pidx'
	want = 'long'
class miniaturizable(aetools.NProperty):
	"""miniaturizable - Whether the window can be miniaturized. """
	which = 'ismn'
	want = 'bool'
class miniaturized(aetools.NProperty):
	"""miniaturized - Whether the window is currently miniaturized. """
	which = 'pmnd'
	want = 'bool'
class modal(aetools.NProperty):
	"""modal - Whether the window is the application's current modal window. """
	which = 'pmod'
	want = 'bool'
class resizable(aetools.NProperty):
	"""resizable - Whether the window can be resized. """
	which = 'prsz'
	want = 'bool'
class titled(aetools.NProperty):
	"""titled - Whether the window has a title bar. """
	which = 'ptit'
	want = 'bool'
class visible(aetools.NProperty):
	"""visible - Whether the window is currently visible. """
	which = 'pvis'
	want = 'bool'
class zoomable(aetools.NProperty):
	"""zoomable - Whether the window can be zoomed. """
	which = 'iszm'
	want = 'bool'
class zoomed(aetools.NProperty):
	"""zoomed - Whether the window is currently zoomed. """
	which = 'pzum'
	want = 'bool'

windows = window

class document(aetools.ComponentItem):
	"""document - A document. """
	want = 'docu'
class modified(aetools.NProperty):
	"""modified - Has the document been modified since the last save? """
	which = 'imod'
	want = 'bool'
class path(aetools.NProperty):
	"""path - The document's path. """
	which = 'ppth'
	want = 'utxt'

documents = document
application._superclassnames = ['item']
application._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'frontmost' : frontmost,
	'name' : name,
	'version' : version,
}
application._privelemdict = {
	'document' : document,
	'window' : window,
}
item._superclassnames = []
item._privpropdict = {
	'class_' : class_,
	'properties' : properties,
}
item._privelemdict = {
}
color._superclassnames = ['item']
color._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
}
color._privelemdict = {
}
window._superclassnames = ['item']
window._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'bounds' : bounds,
	'closeable' : closeable,
	'document' : document,
	'floating' : floating,
	'id' : id,
	'index' : index,
	'miniaturizable' : miniaturizable,
	'miniaturized' : miniaturized,
	'modal' : modal,
	'name' : name,
	'resizable' : resizable,
	'titled' : titled,
	'visible' : visible,
	'zoomable' : zoomable,
	'zoomed' : zoomed,
}
window._privelemdict = {
}
document._superclassnames = ['item']
document._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'modified' : modified,
	'name' : name,
	'path' : path,
}
document._privelemdict = {
}
class _3c_(aetools.NComparison):
	"""< - Less than """
class _3d_(aetools.NComparison):
	"""= - Equal """
class _3e_(aetools.NComparison):
	"""> - Greater than """
class contains(aetools.NComparison):
	"""contains - Contains """
class ends_with(aetools.NComparison):
	"""ends with - Ends with """
class starts_with(aetools.NComparison):
	"""starts with - Starts with """
class _b2_(aetools.NComparison):
	"""\xb2 - Less than or equal to """
class _b3_(aetools.NComparison):
	"""\xb3 - Greater than or equal to """
_Enum_savo = {
	'ask' : 'ask ',	# Ask the user whether or not to save the file.
	'yes' : 'yes ',	# Save the file.
	'no' : 'no  ',	# Do not save the file.
}


#
# Indices of types declared in this module
#
_classdeclarations = {
	'capp' : application,
	'cobj' : item,
	'colr' : color,
	'cwin' : window,
	'docu' : document,
}

_propdeclarations = {
	'ID  ' : id,
	'c@#^' : _3c_Inheritance_3e_,
	'docu' : document,
	'hclb' : closeable,
	'imod' : modified,
	'isfl' : floating,
	'ismn' : miniaturizable,
	'iszm' : zoomable,
	'pALL' : properties,
	'pbnd' : bounds,
	'pcls' : class_,
	'pidx' : index,
	'pisf' : frontmost,
	'pmnd' : miniaturized,
	'pmod' : modal,
	'pnam' : name,
	'ppth' : path,
	'prsz' : resizable,
	'ptit' : titled,
	'pvis' : visible,
	'pzum' : zoomed,
	'vers' : version,
}

_compdeclarations = {
	'<   ' : _3c_,
	'<=  ' : _b2_,
	'=   ' : _3d_,
	'>   ' : _3e_,
	'>=  ' : _b3_,
	'bgwt' : starts_with,
	'cont' : contains,
	'ends' : ends_with,
}

_enumdeclarations = {
	'savo' : _Enum_savo,
}

--- NEW FILE: System_Events_Suite.py ---
"""Suite System Events Suite: Terms and Events for controlling the System Events application
Level 1, version 1

Generated from /System/Library/CoreServices/System Events.app
AETE/AEUT resource version 1/0, language 0, script 0
"""

import aetools
import MacOS

_code = 'sevs'

class System_Events_Suite_Events:

	pass


class application(aetools.ComponentItem):
	"""application - The System Events application """
	want = 'capp'
class _3c_Inheritance_3e_(aetools.NProperty):
	"""<Inheritance> - All of the properties of the superclass. """
	which = 'c@#^'
	want = 'capp'
class folder_actions_enabled(aetools.NProperty):
	"""folder actions enabled - Are Folder Actions currently being processed? """
	which = 'faen'
	want = 'bool'
class properties(aetools.NProperty):
	"""properties - every property of the System Events application """
	which = 'pALL'
	want = '****'
class system_wide_UI_element(aetools.NProperty):
	"""system wide UI element - the UI element for the entire system """
	which = 'swui'
	want = 'uiel'
#        element 'alis' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'cdis' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'cfol' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'cobj' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'cwin' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'docu' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'file' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'foac' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'logi' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'pcap' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'pcda' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'prcs' as ['name', 'indx', 'rele', 'rang', 'test']
#        element 'uiel' as ['name', 'indx', 'rele', 'rang', 'test']

applications = application
application._superclassnames = []
import Disk_2d_Folder_2d_File_Suite
import Standard_Suite
import Folder_Actions_Suite
import Login_Items_Suite
import Processes_Suite
application._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'folder_actions_enabled' : folder_actions_enabled,
	'properties' : properties,
	'system_wide_UI_element' : system_wide_UI_element,
}
application._privelemdict = {
	'UI_element' : Processes_Suite.UI_element,
	'alias' : Disk_2d_Folder_2d_File_Suite.alias,
	'application_process' : Processes_Suite.application_process,
	'desk_accessory_process' : Processes_Suite.desk_accessory_process,
	'disk' : Disk_2d_Folder_2d_File_Suite.disk,
	'document' : Standard_Suite.document,
	'file' : Disk_2d_Folder_2d_File_Suite.file,
	'folder' : Disk_2d_Folder_2d_File_Suite.folder,
	'folder_action' : Folder_Actions_Suite.folder_action,
	'item' : Disk_2d_Folder_2d_File_Suite.item,
	'login_item' : Login_Items_Suite.login_item,
	'process' : Processes_Suite.process,
	'window' : Standard_Suite.window,
}

#
# Indices of types declared in this module
#
_classdeclarations = {
	'capp' : application,
}

_propdeclarations = {
	'c@#^' : _3c_Inheritance_3e_,
	'faen' : folder_actions_enabled,
	'pALL' : properties,
	'swui' : system_wide_UI_element,
}

_compdeclarations = {
}

_enumdeclarations = {
}

--- NEW FILE: Text_Suite.py ---
"""Suite Text Suite: A set of basic classes for text processing.
Level 1, version 1

Generated from /System/Library/CoreServices/System Events.app
AETE/AEUT resource version 1/0, language 0, script 0
"""

import aetools
import MacOS

_code = '????'

class Text_Suite_Events:

	pass


class attachment(aetools.ComponentItem):
	"""attachment - Represents an inline text attachment.  This class is used mainly for make commands. """
	want = 'atts'
class _3c_Inheritance_3e_(aetools.NProperty):
	"""<Inheritance> - All of the properties of the superclass. """
	which = 'c@#^'
	want = 'ctxt'
class file_name(aetools.NProperty):
	"""file name - The path to the file for the attachment """
	which = 'atfn'
	want = 'utxt'
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

class attribute_run(aetools.ComponentItem):
	"""attribute run - This subdivides the text into chunks that all have the same attributes. """
	want = 'catr'
class color(aetools.NProperty):
	"""color - The color of the first character. """
	which = 'colr'
	want = 'colr'
class font(aetools.NProperty):
	"""font - The name of the font of the first character. """
	which = 'font'
	want = 'utxt'
class size(aetools.NProperty):
	"""size - The size in points of the first character. """
	which = 'ptsz'
	want = 'long'
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

attribute_runs = attribute_run

class character(aetools.ComponentItem):
	"""character - This subdivides the text into characters. """
	want = 'cha '
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

characters = character

class paragraph(aetools.ComponentItem):
	"""paragraph - This subdivides the text into paragraphs. """
	want = 'cpar'
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

paragraphs = paragraph

class text(aetools.ComponentItem):
	"""text - Rich (styled) text """
	want = 'ctxt'
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

class word(aetools.ComponentItem):
	"""word - This subdivides the text into words. """
	want = 'cwor'
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

words = word
attachment._superclassnames = ['text']
attachment._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'file_name' : file_name,
}
attachment._privelemdict = {
	'attribute_run' : attribute_run,
	'character' : character,
	'paragraph' : paragraph,
	'word' : word,
}
import Standard_Suite
attribute_run._superclassnames = ['item']
attribute_run._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'color' : color,
	'font' : font,
	'size' : size,
}
attribute_run._privelemdict = {
	'attribute_run' : attribute_run,
	'character' : character,
	'paragraph' : paragraph,
	'word' : word,
}
character._superclassnames = ['item']
character._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'color' : color,
	'font' : font,
	'size' : size,
}
character._privelemdict = {
	'attribute_run' : attribute_run,
	'character' : character,
	'paragraph' : paragraph,
	'word' : word,
}
paragraph._superclassnames = ['item']
paragraph._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'color' : color,
	'font' : font,
	'size' : size,
}
paragraph._privelemdict = {
	'attribute_run' : attribute_run,
	'character' : character,
	'paragraph' : paragraph,
	'word' : word,
}
text._superclassnames = ['item']
text._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'color' : color,
	'font' : font,
	'size' : size,
}
text._privelemdict = {
	'attribute_run' : attribute_run,
	'character' : character,
	'paragraph' : paragraph,
	'word' : word,
}
word._superclassnames = ['item']
word._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'color' : color,
	'font' : font,
	'size' : size,
}
word._privelemdict = {
	'attribute_run' : attribute_run,
	'character' : character,
	'paragraph' : paragraph,
	'word' : word,
}

#
# Indices of types declared in this module
#
_classdeclarations = {
	'atts' : attachment,
	'catr' : attribute_run,
	'cha ' : character,
	'cpar' : paragraph,
	'ctxt' : text,
	'cwor' : word,
}

_propdeclarations = {
	'atfn' : file_name,
	'c@#^' : _3c_Inheritance_3e_,
	'colr' : color,
	'font' : font,
	'ptsz' : size,
}

_compdeclarations = {
}

_enumdeclarations = {
}

--- NEW FILE: __init__.py ---
"""
Package generated from /System/Library/CoreServices/System Events.app
"""
import aetools
Error = aetools.Error
import Standard_Suite
import Text_Suite
import Disk_2d_Folder_2d_File_Suite
import Folder_Actions_Suite
import Login_Items_Suite
import Power_Suite
import Processes_Suite
import System_Events_Suite
import Hidden_Suite


_code_to_module = {
	'????' : Standard_Suite,
	'????' : Text_Suite,
	'cdis' : Disk_2d_Folder_2d_File_Suite,
	'faco' : Folder_Actions_Suite,
	'logi' : Login_Items_Suite,
	'powr' : Power_Suite,
	'prcs' : Processes_Suite,
	'sevs' : System_Events_Suite,
	'tpnm' : Hidden_Suite,
}



_code_to_fullname = {
	'????' : ('SystemEvents.Standard_Suite', 'Standard_Suite'),
	'????' : ('SystemEvents.Text_Suite', 'Text_Suite'),
	'cdis' : ('SystemEvents.Disk_2d_Folder_2d_File_Suite', 'Disk_2d_Folder_2d_File_Suite'),
	'faco' : ('SystemEvents.Folder_Actions_Suite', 'Folder_Actions_Suite'),
	'logi' : ('SystemEvents.Login_Items_Suite', 'Login_Items_Suite'),
	'powr' : ('SystemEvents.Power_Suite', 'Power_Suite'),
	'prcs' : ('SystemEvents.Processes_Suite', 'Processes_Suite'),
	'sevs' : ('SystemEvents.System_Events_Suite', 'System_Events_Suite'),
	'tpnm' : ('SystemEvents.Hidden_Suite', 'Hidden_Suite'),
}

from Standard_Suite import *
from Text_Suite import *
from Disk_2d_Folder_2d_File_Suite import *
from Folder_Actions_Suite import *
from Login_Items_Suite import *
from Power_Suite import *
from Processes_Suite import *
from System_Events_Suite import *
from Hidden_Suite import *

def getbaseclasses(v):
	if not getattr(v, '_propdict', None):
		v._propdict = {}
		v._elemdict = {}
		for superclassname in getattr(v, '_superclassnames', []):
			superclass = eval(superclassname)
			getbaseclasses(superclass)
			v._propdict.update(getattr(superclass, '_propdict', {}))
			v._elemdict.update(getattr(superclass, '_elemdict', {}))
		v._propdict.update(getattr(v, '_privpropdict', {}))
		v._elemdict.update(getattr(v, '_privelemdict', {}))

import StdSuites

#
# Set property and element dictionaries now that all classes have been defined
#
getbaseclasses(character)
getbaseclasses(attachment)
getbaseclasses(paragraph)
getbaseclasses(word)
getbaseclasses(attribute_run)
getbaseclasses(text)
getbaseclasses(script)
getbaseclasses(folder_action)
getbaseclasses(file)
getbaseclasses(alias)
getbaseclasses(item)
getbaseclasses(folder)
getbaseclasses(disk)
getbaseclasses(color)
getbaseclasses(window)
getbaseclasses(application)
getbaseclasses(item)
getbaseclasses(document)
getbaseclasses(login_item)
getbaseclasses(StdSuites.Type_Names_Suite.double_integer)
getbaseclasses(StdSuites.Type_Names_Suite.version)
getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color)
getbaseclasses(StdSuites.Type_Names_Suite.system_dictionary)
getbaseclasses(StdSuites.Type_Names_Suite.color_table)
getbaseclasses(StdSuites.Type_Names_Suite.fixed_point)
getbaseclasses(StdSuites.Type_Names_Suite.TIFF_picture)
getbaseclasses(StdSuites.Type_Names_Suite.type_element_info)
getbaseclasses(StdSuites.Type_Names_Suite.type_event_info)
getbaseclasses(StdSuites.Type_Names_Suite.machine_location)
getbaseclasses(StdSuites.Type_Names_Suite.PostScript_picture)
getbaseclasses(StdSuites.Type_Names_Suite.point)
getbaseclasses(StdSuites.Type_Names_Suite.long_fixed_point)
getbaseclasses(StdSuites.Type_Names_Suite.menu_item)
getbaseclasses(StdSuites.Type_Names_Suite.scrap_styles)
getbaseclasses(StdSuites.Type_Names_Suite.application_dictionary)
getbaseclasses(StdSuites.Type_Names_Suite.unsigned_integer)
getbaseclasses(StdSuites.Type_Names_Suite.menu)
getbaseclasses(StdSuites.Type_Names_Suite.fixed_rectangle)
getbaseclasses(StdSuites.Type_Names_Suite.type_property_info)
getbaseclasses(StdSuites.Type_Names_Suite.long_fixed_rectangle)
getbaseclasses(StdSuites.Type_Names_Suite.long_fixed)
getbaseclasses(StdSuites.Type_Names_Suite.type_suite_info)
getbaseclasses(StdSuites.Type_Names_Suite.rotation)
getbaseclasses(StdSuites.Type_Names_Suite.small_integer)
getbaseclasses(StdSuites.Type_Names_Suite.fixed)
getbaseclasses(StdSuites.Type_Names_Suite.long_point)
getbaseclasses(StdSuites.Type_Names_Suite.type_class_info)
getbaseclasses(StdSuites.Type_Names_Suite.RGB96_color)
getbaseclasses(StdSuites.Type_Names_Suite.target_id)
getbaseclasses(StdSuites.Type_Names_Suite.pixel_map_record)
getbaseclasses(StdSuites.Type_Names_Suite.type_parameter_info)
getbaseclasses(StdSuites.Type_Names_Suite.extended_real)
getbaseclasses(StdSuites.Type_Names_Suite.long_rectangle)
getbaseclasses(StdSuites.Type_Names_Suite.dash_style)
getbaseclasses(StdSuites.Type_Names_Suite.plain_text)
getbaseclasses(StdSuites.Type_Names_Suite.small_real)
getbaseclasses(StdSuites.Type_Names_Suite.null)
getbaseclasses(StdSuites.Type_Names_Suite.location_reference)
getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle)
getbaseclasses(window)
getbaseclasses(radio_button)
getbaseclasses(list)
getbaseclasses(desk_accessory_process)
getbaseclasses(menu_item)
getbaseclasses(progress_indicator)
getbaseclasses(menu)
getbaseclasses(menu_button)
getbaseclasses(pop_up_button)
getbaseclasses(incrementor)
getbaseclasses(sheet)
getbaseclasses(tool_bar)
getbaseclasses(application_process)
getbaseclasses(text_field)
getbaseclasses(text_area)
getbaseclasses(slider)
getbaseclasses(scroll_area)
getbaseclasses(relevance_indicator)
getbaseclasses(busy_indicator)
getbaseclasses(row)
getbaseclasses(process)
getbaseclasses(table)
getbaseclasses(outline)
getbaseclasses(UI_element)
getbaseclasses(value_indicator)
getbaseclasses(system_wide_UI_element)
getbaseclasses(button)
getbaseclasses(application)
getbaseclasses(radio_group)
getbaseclasses(image)
getbaseclasses(tab_group)
getbaseclasses(menu_bar)
getbaseclasses(grow_area)
getbaseclasses(check_box)
getbaseclasses(column)
getbaseclasses(static_text)
getbaseclasses(splitter_group)
getbaseclasses(group)
getbaseclasses(splitter)
getbaseclasses(drawer)
getbaseclasses(color_well)
getbaseclasses(scroll_bar)
getbaseclasses(combo_box)
getbaseclasses(browser)
getbaseclasses(application)

#
# Indices of types declared in this module
#
_classdeclarations = {
	'cha ' : character,
	'atts' : attachment,
	'cpar' : paragraph,
	'cwor' : word,
	'catr' : attribute_run,
	'ctxt' : text,
	'scpt' : script,
	'foac' : folder_action,
	'file' : file,
	'alis' : alias,
	'cobj' : item,
	'cfol' : folder,
	'cdis' : disk,
	'colr' : color,
	'cwin' : window,
	'capp' : application,
	'cobj' : item,
	'docu' : document,
	'logi' : login_item,
	'comp' : StdSuites.Type_Names_Suite.double_integer,
	'vers' : StdSuites.Type_Names_Suite.version,
	'tr16' : StdSuites.Type_Names_Suite.RGB16_color,
	'aeut' : StdSuites.Type_Names_Suite.system_dictionary,
	'clrt' : StdSuites.Type_Names_Suite.color_table,
	'fpnt' : StdSuites.Type_Names_Suite.fixed_point,
	'TIFF' : StdSuites.Type_Names_Suite.TIFF_picture,
	'elin' : StdSuites.Type_Names_Suite.type_element_info,
	'evin' : StdSuites.Type_Names_Suite.type_event_info,
	'mLoc' : StdSuites.Type_Names_Suite.machine_location,
	'EPS ' : StdSuites.Type_Names_Suite.PostScript_picture,
	'QDpt' : StdSuites.Type_Names_Suite.point,
	'lfpt' : StdSuites.Type_Names_Suite.long_fixed_point,
	'cmen' : StdSuites.Type_Names_Suite.menu_item,
	'styl' : StdSuites.Type_Names_Suite.scrap_styles,
	'aete' : StdSuites.Type_Names_Suite.application_dictionary,
	'magn' : StdSuites.Type_Names_Suite.unsigned_integer,
	'cmnu' : StdSuites.Type_Names_Suite.menu,
	'frct' : StdSuites.Type_Names_Suite.fixed_rectangle,
	'pinf' : StdSuites.Type_Names_Suite.type_property_info,
	'lfrc' : StdSuites.Type_Names_Suite.long_fixed_rectangle,
	'lfxd' : StdSuites.Type_Names_Suite.long_fixed,
	'suin' : StdSuites.Type_Names_Suite.type_suite_info,
	'trot' : StdSuites.Type_Names_Suite.rotation,
	'shor' : StdSuites.Type_Names_Suite.small_integer,
	'fixd' : StdSuites.Type_Names_Suite.fixed,
	'lpnt' : StdSuites.Type_Names_Suite.long_point,
	'gcli' : StdSuites.Type_Names_Suite.type_class_info,
	'tr96' : StdSuites.Type_Names_Suite.RGB96_color,
	'targ' : StdSuites.Type_Names_Suite.target_id,
	'tpmm' : StdSuites.Type_Names_Suite.pixel_map_record,
	'pmin' : StdSuites.Type_Names_Suite.type_parameter_info,
	'exte' : StdSuites.Type_Names_Suite.extended_real,
	'lrct' : StdSuites.Type_Names_Suite.long_rectangle,
	'tdas' : StdSuites.Type_Names_Suite.dash_style,
	'TEXT' : StdSuites.Type_Names_Suite.plain_text,
	'sing' : StdSuites.Type_Names_Suite.small_real,
	'null' : StdSuites.Type_Names_Suite.null,
	'insl' : StdSuites.Type_Names_Suite.location_reference,
	'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle,
	'cwin' : window,
	'radB' : radio_button,
	'list' : list,
	'pcda' : desk_accessory_process,
	'menI' : menu_item,
	'proI' : progress_indicator,
	'menE' : menu,
	'menB' : menu_button,
	'popB' : pop_up_button,
	'incr' : incrementor,
	'sheE' : sheet,
	'tbar' : tool_bar,
	'pcap' : application_process,
	'txtf' : text_field,
	'txta' : text_area,
	'sliI' : slider,
	'scra' : scroll_area,
	'reli' : relevance_indicator,
	'busi' : busy_indicator,
	'crow' : row,
	'prcs' : process,
	'tabB' : table,
	'outl' : outline,
	'uiel' : UI_element,
	'vali' : value_indicator,
	'sysw' : system_wide_UI_element,
	'butT' : button,
	'capp' : application,
	'rgrp' : radio_group,
	'imaA' : image,
	'tab ' : tab_group,
	'mbar' : menu_bar,
	'grow' : grow_area,
	'chbx' : check_box,
	'ccol' : column,
	'sttx' : static_text,
	'splg' : splitter_group,
	'sgrp' : group,
	'splr' : splitter,
	'draA' : drawer,
	'colW' : color_well,
	'scrb' : scroll_bar,
	'comB' : combo_box,
	'broW' : browser,
	'capp' : application,
}


class SystemEvents(Standard_Suite_Events,
		Text_Suite_Events,
		Disk_2d_Folder_2d_File_Suite_Events,
		Folder_Actions_Suite_Events,
		Login_Items_Suite_Events,
		Power_Suite_Events,
		Processes_Suite_Events,
		System_Events_Suite_Events,
		Hidden_Suite_Events,
		aetools.TalkTo):
	_signature = 'sevs'

	_moduleName = 'SystemEvents'