| 1 | n/a | """Suite Mozilla suite: Experimental Mozilla suite |
|---|
| 2 | n/a | Level 1, version 1 |
|---|
| 3 | n/a | |
|---|
| 4 | n/a | Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2 |
|---|
| 5 | n/a | AETE/AEUT resource version 1/0, language 0, script 0 |
|---|
| 6 | n/a | """ |
|---|
| 7 | n/a | |
|---|
| 8 | n/a | import aetools |
|---|
| 9 | n/a | import MacOS |
|---|
| 10 | n/a | |
|---|
| 11 | n/a | _code = 'MOSS' |
|---|
| 12 | n/a | |
|---|
| 13 | n/a | class Mozilla_suite_Events: |
|---|
| 14 | n/a | |
|---|
| 15 | n/a | def Get_Import_Data(self, _no_object=None, _attributes={}, **_arguments): |
|---|
| 16 | n/a | """Get Import Data: Returns a structure containing information that is of use to an external module in importing data from an external mail application into Communicator. |
|---|
| 17 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 18 | n/a | Returns: vRefNum and dirID of profile folder (2+4 bytes), vRefNum and DirID of the local mail folder (2+4 bytes), window type of front window (0 if none, \xd4Brwz\xd5 browser, \xd4Addr\xd5 addressbook, \xd4Mesg\xd5 messenger, etc., 4 bytes) |
|---|
| 19 | n/a | """ |
|---|
| 20 | n/a | _code = 'MOSS' |
|---|
| 21 | n/a | _subcode = 'Impt' |
|---|
| 22 | n/a | |
|---|
| 23 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 24 | n/a | if _no_object is not None: raise TypeError, 'No direct arg expected' |
|---|
| 25 | n/a | |
|---|
| 26 | n/a | |
|---|
| 27 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 28 | n/a | _arguments, _attributes) |
|---|
| 29 | n/a | if _arguments.get('errn', 0): |
|---|
| 30 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 31 | n/a | # XXXX Optionally decode result |
|---|
| 32 | n/a | if _arguments.has_key('----'): |
|---|
| 33 | n/a | return _arguments['----'] |
|---|
| 34 | n/a | |
|---|
| 35 | n/a | def Get_Profile_Name(self, _no_object=None, _attributes={}, **_arguments): |
|---|
| 36 | n/a | """Get Profile Name: Get the current User Profile |
|---|
| 37 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 38 | n/a | Returns: Name of the current profile, like \xd2Joe Bloggs\xd3. This is the name of the profile folder in the Netscape Users folder. |
|---|
| 39 | n/a | """ |
|---|
| 40 | n/a | _code = 'MOSS' |
|---|
| 41 | n/a | _subcode = 'upro' |
|---|
| 42 | n/a | |
|---|
| 43 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 44 | n/a | if _no_object is not None: raise TypeError, 'No direct arg expected' |
|---|
| 45 | n/a | |
|---|
| 46 | n/a | |
|---|
| 47 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 48 | n/a | _arguments, _attributes) |
|---|
| 49 | n/a | if _arguments.get('errn', 0): |
|---|
| 50 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 51 | n/a | # XXXX Optionally decode result |
|---|
| 52 | n/a | if _arguments.has_key('----'): |
|---|
| 53 | n/a | return _arguments['----'] |
|---|
| 54 | n/a | |
|---|
| 55 | n/a | def Get_workingURL(self, _no_object=None, _attributes={}, **_arguments): |
|---|
| 56 | n/a | """Get workingURL: Get the path to the running application in URL format. This will allow a script to construct a relative URL |
|---|
| 57 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 58 | n/a | Returns: Will return text of the from \xd2FILE://foo/applicationname\xd3 |
|---|
| 59 | n/a | """ |
|---|
| 60 | n/a | _code = 'MOSS' |
|---|
| 61 | n/a | _subcode = 'wurl' |
|---|
| 62 | n/a | |
|---|
| 63 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 64 | n/a | if _no_object is not None: raise TypeError, 'No direct arg expected' |
|---|
| 65 | n/a | |
|---|
| 66 | n/a | |
|---|
| 67 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 68 | n/a | _arguments, _attributes) |
|---|
| 69 | n/a | if _arguments.get('errn', 0): |
|---|
| 70 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 71 | n/a | # XXXX Optionally decode result |
|---|
| 72 | n/a | if _arguments.has_key('----'): |
|---|
| 73 | n/a | return _arguments['----'] |
|---|
| 74 | n/a | |
|---|
| 75 | n/a | _argmap_Go = { |
|---|
| 76 | n/a | 'direction' : 'dire', |
|---|
| 77 | n/a | } |
|---|
| 78 | n/a | |
|---|
| 79 | n/a | def Go(self, _object, _attributes={}, **_arguments): |
|---|
| 80 | n/a | """Go: navigate a window: back, forward, again(reload), home) |
|---|
| 81 | n/a | Required argument: window |
|---|
| 82 | n/a | Keyword argument direction: undocumented, typecode 'dire' |
|---|
| 83 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 84 | n/a | """ |
|---|
| 85 | n/a | _code = 'MOSS' |
|---|
| 86 | n/a | _subcode = 'gogo' |
|---|
| 87 | n/a | |
|---|
| 88 | n/a | aetools.keysubst(_arguments, self._argmap_Go) |
|---|
| 89 | n/a | _arguments['----'] = _object |
|---|
| 90 | n/a | |
|---|
| 91 | n/a | aetools.enumsubst(_arguments, 'dire', _Enum_dire) |
|---|
| 92 | n/a | |
|---|
| 93 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 94 | n/a | _arguments, _attributes) |
|---|
| 95 | n/a | if _arguments.get('errn', 0): |
|---|
| 96 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 97 | n/a | # XXXX Optionally decode result |
|---|
| 98 | n/a | if _arguments.has_key('----'): |
|---|
| 99 | n/a | return _arguments['----'] |
|---|
| 100 | n/a | |
|---|
| 101 | n/a | def Handle_command(self, _object, _attributes={}, **_arguments): |
|---|
| 102 | n/a | """Handle command: Handle a command |
|---|
| 103 | n/a | Required argument: The command to handle |
|---|
| 104 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 105 | n/a | """ |
|---|
| 106 | n/a | _code = 'MOSS' |
|---|
| 107 | n/a | _subcode = 'hcmd' |
|---|
| 108 | n/a | |
|---|
| 109 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 110 | n/a | _arguments['----'] = _object |
|---|
| 111 | n/a | |
|---|
| 112 | n/a | |
|---|
| 113 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 114 | n/a | _arguments, _attributes) |
|---|
| 115 | n/a | if _arguments.get('errn', 0): |
|---|
| 116 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 117 | n/a | # XXXX Optionally decode result |
|---|
| 118 | n/a | if _arguments.has_key('----'): |
|---|
| 119 | n/a | return _arguments['----'] |
|---|
| 120 | n/a | |
|---|
| 121 | n/a | def Open_Address_Book(self, _no_object=None, _attributes={}, **_arguments): |
|---|
| 122 | n/a | """Open Address Book: Opens the address book |
|---|
| 123 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 124 | n/a | """ |
|---|
| 125 | n/a | _code = 'MOSS' |
|---|
| 126 | n/a | _subcode = 'addr' |
|---|
| 127 | n/a | |
|---|
| 128 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 129 | n/a | if _no_object is not None: raise TypeError, 'No direct arg expected' |
|---|
| 130 | n/a | |
|---|
| 131 | n/a | |
|---|
| 132 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 133 | n/a | _arguments, _attributes) |
|---|
| 134 | n/a | if _arguments.get('errn', 0): |
|---|
| 135 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 136 | n/a | # XXXX Optionally decode result |
|---|
| 137 | n/a | if _arguments.has_key('----'): |
|---|
| 138 | n/a | return _arguments['----'] |
|---|
| 139 | n/a | |
|---|
| 140 | n/a | def Open_Component(self, _object, _attributes={}, **_arguments): |
|---|
| 141 | n/a | """Open Component: Open a Communicator component |
|---|
| 142 | n/a | Required argument: The component to open |
|---|
| 143 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 144 | n/a | """ |
|---|
| 145 | n/a | _code = 'MOSS' |
|---|
| 146 | n/a | _subcode = 'cpnt' |
|---|
| 147 | n/a | |
|---|
| 148 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 149 | n/a | _arguments['----'] = _object |
|---|
| 150 | n/a | |
|---|
| 151 | n/a | |
|---|
| 152 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 153 | n/a | _arguments, _attributes) |
|---|
| 154 | n/a | if _arguments.get('errn', 0): |
|---|
| 155 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 156 | n/a | # XXXX Optionally decode result |
|---|
| 157 | n/a | if _arguments.has_key('----'): |
|---|
| 158 | n/a | return _arguments['----'] |
|---|
| 159 | n/a | |
|---|
| 160 | n/a | def Open_Profile_Manager(self, _no_object=None, _attributes={}, **_arguments): |
|---|
| 161 | n/a | """Open Profile Manager: Open the user profile manager (obsolete) |
|---|
| 162 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 163 | n/a | """ |
|---|
| 164 | n/a | _code = 'MOSS' |
|---|
| 165 | n/a | _subcode = 'prfl' |
|---|
| 166 | n/a | |
|---|
| 167 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 168 | n/a | if _no_object is not None: raise TypeError, 'No direct arg expected' |
|---|
| 169 | n/a | |
|---|
| 170 | n/a | |
|---|
| 171 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 172 | n/a | _arguments, _attributes) |
|---|
| 173 | n/a | if _arguments.get('errn', 0): |
|---|
| 174 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 175 | n/a | # XXXX Optionally decode result |
|---|
| 176 | n/a | if _arguments.has_key('----'): |
|---|
| 177 | n/a | return _arguments['----'] |
|---|
| 178 | n/a | |
|---|
| 179 | n/a | def Open_bookmark(self, _object=None, _attributes={}, **_arguments): |
|---|
| 180 | n/a | """Open bookmark: Reads in a bookmark file |
|---|
| 181 | n/a | Required argument: If not available, reloads the current bookmark file |
|---|
| 182 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 183 | n/a | """ |
|---|
| 184 | n/a | _code = 'MOSS' |
|---|
| 185 | n/a | _subcode = 'book' |
|---|
| 186 | n/a | |
|---|
| 187 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 188 | n/a | _arguments['----'] = _object |
|---|
| 189 | n/a | |
|---|
| 190 | n/a | |
|---|
| 191 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 192 | n/a | _arguments, _attributes) |
|---|
| 193 | n/a | if _arguments.get('errn', 0): |
|---|
| 194 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 195 | n/a | # XXXX Optionally decode result |
|---|
| 196 | n/a | if _arguments.has_key('----'): |
|---|
| 197 | n/a | return _arguments['----'] |
|---|
| 198 | n/a | |
|---|
| 199 | n/a | _argmap_Read_help_file = { |
|---|
| 200 | n/a | 'with_index' : 'idid', |
|---|
| 201 | n/a | 'search_text' : 'sear', |
|---|
| 202 | n/a | } |
|---|
| 203 | n/a | |
|---|
| 204 | n/a | def Read_help_file(self, _object, _attributes={}, **_arguments): |
|---|
| 205 | n/a | """Read help file: Reads in the help file (file should be in the help file format) |
|---|
| 206 | n/a | Required argument: undocumented, typecode 'alis' |
|---|
| 207 | n/a | Keyword argument with_index: Index to the help file. Defaults to \xd4DEFAULT\xd5) |
|---|
| 208 | n/a | Keyword argument search_text: Optional text to search for |
|---|
| 209 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 210 | n/a | """ |
|---|
| 211 | n/a | _code = 'MOSS' |
|---|
| 212 | n/a | _subcode = 'help' |
|---|
| 213 | n/a | |
|---|
| 214 | n/a | aetools.keysubst(_arguments, self._argmap_Read_help_file) |
|---|
| 215 | n/a | _arguments['----'] = _object |
|---|
| 216 | n/a | |
|---|
| 217 | n/a | |
|---|
| 218 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 219 | n/a | _arguments, _attributes) |
|---|
| 220 | n/a | if _arguments.get('errn', 0): |
|---|
| 221 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 222 | n/a | # XXXX Optionally decode result |
|---|
| 223 | n/a | if _arguments.has_key('----'): |
|---|
| 224 | n/a | return _arguments['----'] |
|---|
| 225 | n/a | |
|---|
| 226 | n/a | _Enum_comp = { |
|---|
| 227 | n/a | 'Navigator' : 'navg', # The Navigator component |
|---|
| 228 | n/a | 'InBox' : 'inbx', # The InBox component |
|---|
| 229 | n/a | 'Newsgroups' : 'colb', # The Newsgroups component |
|---|
| 230 | n/a | 'Composer' : 'cpsr', # The Page Composer component |
|---|
| 231 | n/a | 'Conference' : 'conf', # The Conference Component |
|---|
| 232 | n/a | 'Calendar' : 'cald', # The Calendar Component |
|---|
| 233 | n/a | } |
|---|
| 234 | n/a | |
|---|
| 235 | n/a | _Enum_dire = { |
|---|
| 236 | n/a | 'again' : 'agai', # Again (reload) |
|---|
| 237 | n/a | 'home' : 'home', # Home |
|---|
| 238 | n/a | 'backward' : 'prev', # Previous page |
|---|
| 239 | n/a | 'forward' : 'next', # Next page |
|---|
| 240 | n/a | } |
|---|
| 241 | n/a | |
|---|
| 242 | n/a | _Enum_ncmd = { |
|---|
| 243 | n/a | 'Get_new_mail' : '\x00\x00\x04W', # |
|---|
| 244 | n/a | 'Send_queued_messages' : '\x00\x00\x04X', # |
|---|
| 245 | n/a | 'Read_newsgroups' : '\x00\x00\x04\x04', # |
|---|
| 246 | n/a | 'Show_Inbox' : '\x00\x00\x04\x05', # |
|---|
| 247 | n/a | 'Show_Bookmarks_window' : '\x00\x00\x04\x06', # |
|---|
| 248 | n/a | 'Show_History_window' : '\x00\x00\x04\x07', # |
|---|
| 249 | n/a | 'Show_Address_Book_window' : '\x00\x00\x04\t', # |
|---|
| 250 | n/a | } |
|---|
| 251 | n/a | |
|---|
| 252 | n/a | |
|---|
| 253 | n/a | # |
|---|
| 254 | n/a | # Indices of types declared in this module |
|---|
| 255 | n/a | # |
|---|
| 256 | n/a | _classdeclarations = { |
|---|
| 257 | n/a | } |
|---|
| 258 | n/a | |
|---|
| 259 | n/a | _propdeclarations = { |
|---|
| 260 | n/a | } |
|---|
| 261 | n/a | |
|---|
| 262 | n/a | _compdeclarations = { |
|---|
| 263 | n/a | } |
|---|
| 264 | n/a | |
|---|
| 265 | n/a | _enumdeclarations = { |
|---|
| 266 | n/a | 'comp' : _Enum_comp, |
|---|
| 267 | n/a | 'dire' : _Enum_dire, |
|---|
| 268 | n/a | 'ncmd' : _Enum_ncmd, |
|---|
| 269 | n/a | } |
|---|