home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 May / maximum-cd-2010-05.iso / DiscContents / boxee-0.9.20.10711.exe / system / python / Lib / plat-mac / lib-scriptpackages / Netscape / Mozilla_suite.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-07-20  |  8.7 KB  |  256 lines

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