openfile(): Go back to opening the files in text mode. This undoes
[python/dscho.git] / Mac / Lib / lib-scriptpackages / Explorer / Standard_Suite.py
blob101afe7dd81a2e73dc1c7ff1648f93870a24b06f
1 """Suite Standard Suite: Common terms for most applications
2 Level 1, version 1
4 Generated from /Volumes/Sap/Applications (Mac OS 9)/Internet Explorer 5/Internet Explorer
5 AETE/AEUT resource version 1/0, language 0, script 0
6 """
8 import aetools
9 import MacOS
11 _code = '****'
13 class Standard_Suite_Events:
15 _argmap_get = {
16 'as' : 'rtyp',
19 def get(self, _object, _attributes={}, **_arguments):
20 """get:
21 Required argument: an AE object reference
22 Keyword argument as: undocumented, typecode 'type'
23 Keyword argument _attributes: AppleEvent attribute dictionary
24 Returns: anything
25 """
26 _code = 'core'
27 _subcode = 'getd'
29 aetools.keysubst(_arguments, self._argmap_get)
30 _arguments['----'] = _object
33 _reply, _arguments, _attributes = self.send(_code, _subcode,
34 _arguments, _attributes)
35 if _arguments.get('errn', 0):
36 raise aetools.Error, aetools.decodeerror(_arguments)
37 # XXXX Optionally decode result
38 if _arguments.has_key('----'):
39 return _arguments['----']
42 class application(aetools.ComponentItem):
43 """application - An application program """
44 want = 'capp'
45 class selected_text(aetools.NProperty):
46 """selected text - the selected text """
47 which = 'stxt'
48 want = 'TEXT'
49 application._superclassnames = []
50 application._privpropdict = {
51 'selected_text' : selected_text,
53 application._privelemdict = {
57 # Indices of types declared in this module
59 _classdeclarations = {
60 'capp' : application,
63 _propdeclarations = {
64 'stxt' : selected_text,
67 _compdeclarations = {
70 _enumdeclarations = {