summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-12 22:25:16 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-05-12 22:25:16 (GMT)
commit69a07fbd9b2c1e2d203532d4babbc6d874d389ee (patch)
tree822d06c6602339d309b30584ca0bfd05f5b56edc /Lib/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py
parenta005b34f14fd4548c84886244b68d2c34e75edbd (diff)
downloadcpython-69a07fbd9b2c1e2d203532d4babbc6d874d389ee.zip
cpython-69a07fbd9b2c1e2d203532d4babbc6d874d389ee.tar.gz
cpython-69a07fbd9b2c1e2d203532d4babbc6d874d389ee.tar.bz2
Remove the Mac modules
Diffstat (limited to 'Lib/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py')
-rw-r--r--Lib/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py109
1 files changed, 0 insertions, 109 deletions
diff --git a/Lib/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py b/Lib/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py
deleted file mode 100644
index 1f6f8cd..0000000
--- a/Lib/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py
+++ /dev/null
@@ -1,109 +0,0 @@
-"""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:
-
- 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['----']
-
-
-class application(aetools.ComponentItem):
- """application - The System Events application """
- want = 'capp'
-class _Prop__3c_Inheritance_3e_(aetools.NProperty):
- """<Inheritance> - All of the properties of the superclass. """
- which = 'c@#^'
- want = 'capp'
-_3c_Inheritance_3e_ = _Prop__3c_Inheritance_3e_()
-class _Prop_folder_actions_enabled(aetools.NProperty):
- """folder actions enabled - Are Folder Actions currently being processed? """
- which = 'faen'
- want = 'bool'
-folder_actions_enabled = _Prop_folder_actions_enabled()
-class _Prop_properties(aetools.NProperty):
- """properties - every property of the System Events application """
- which = 'pALL'
- want = '****'
-properties = _Prop_properties()
-# 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', 'ID ']
-# 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']
-
-applications = application
-application._superclassnames = []
-from . import Disk_Folder_File_Suite
-from . import Standard_Suite
-from . import Folder_Actions_Suite
-from . import Login_Items_Suite
-from . import Processes_Suite
-application._privpropdict = {
- '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
- 'folder_actions_enabled' : _Prop_folder_actions_enabled,
- 'properties' : _Prop_properties,
-}
-application._privelemdict = {
- 'application_process' : Processes_Suite.application_process,
- 'desk_accessory_process' : Processes_Suite.desk_accessory_process,
- 'disk' : Disk_Folder_File_Suite.disk,
- 'document' : Standard_Suite.document,
- 'file' : Disk_Folder_File_Suite.file,
- 'folder' : Disk_Folder_File_Suite.folder,
- 'folder_action' : Folder_Actions_Suite.folder_action,
- 'item' : Disk_Folder_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@#^' : _Prop__3c_Inheritance_3e_,
- 'faen' : _Prop_folder_actions_enabled,
- 'pALL' : _Prop_properties,
-}
-
-_compdeclarations = {
-}
-
-_enumdeclarations = {
-}