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 / StdSuites / Standard_Suite.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-07-20  |  24.5 KB  |  734 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4. '''Suite Standard Suite: Common terms for most applications
  5. Level 1, version 1
  6.  
  7. Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
  8. AETE/AEUT resource version 1/0, language 0, script 0
  9. '''
  10. import aetools
  11. import MacOS
  12. _code = 'core'
  13. from _builtinSuites.builtin_Suite import *
  14.  
  15. class Standard_Suite_Events(builtin_Suite_Events):
  16.     _argmap_class_info = {
  17.         'in_': 'wrcd' }
  18.     
  19.     def class_info(self, _object = None, _attributes = { }, **_arguments):
  20.         '''class info: (optional) Get information about an object class
  21.         Required argument: the object class about which information is requested
  22.         Keyword argument in_: the human language and script system in which to return information
  23.         Keyword argument _attributes: AppleEvent attribute dictionary
  24.         Returns: a record containing the object\xd5s properties and elements
  25.         '''
  26.         _code = 'core'
  27.         _subcode = 'qobj'
  28.         aetools.keysubst(_arguments, self._argmap_class_info)
  29.         _arguments['----'] = _object
  30.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  31.         if _arguments.get('errn', 0):
  32.             raise aetools.Error, aetools.decodeerror(_arguments)
  33.         
  34.         if _arguments.has_key('----'):
  35.             return _arguments['----']
  36.         
  37.  
  38.     _argmap_close = {
  39.         'saving': 'savo',
  40.         'saving_in': 'kfil' }
  41.     
  42.     def close(self, _object, _attributes = { }, **_arguments):
  43.         '''close: Close an object
  44.         Required argument: the object to close
  45.         Keyword argument saving: specifies whether changes should be saved before closing
  46.         Keyword argument saving_in: the file or alias in which to save the object
  47.         Keyword argument _attributes: AppleEvent attribute dictionary
  48.         '''
  49.         _code = 'core'
  50.         _subcode = 'clos'
  51.         aetools.keysubst(_arguments, self._argmap_close)
  52.         _arguments['----'] = _object
  53.         aetools.enumsubst(_arguments, 'savo', _Enum_savo)
  54.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  55.         if _arguments.get('errn', 0):
  56.             raise aetools.Error, aetools.decodeerror(_arguments)
  57.         
  58.         if _arguments.has_key('----'):
  59.             return _arguments['----']
  60.         
  61.  
  62.     _argmap_count = {
  63.         'each': 'kocl' }
  64.     
  65.     def count(self, _object, _attributes = { }, **_arguments):
  66.         '''count: Return the number of elements of an object
  67.         Required argument: the object whose elements are to be counted
  68.         Keyword argument each: if specified, restricts counting to objects of this class
  69.         Keyword argument _attributes: AppleEvent attribute dictionary
  70.         Returns: the number of elements
  71.         '''
  72.         _code = 'core'
  73.         _subcode = 'cnte'
  74.         aetools.keysubst(_arguments, self._argmap_count)
  75.         _arguments['----'] = _object
  76.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  77.         if _arguments.get('errn', 0):
  78.             raise aetools.Error, aetools.decodeerror(_arguments)
  79.         
  80.         if _arguments.has_key('----'):
  81.             return _arguments['----']
  82.         
  83.  
  84.     _argmap_data_size = {
  85.         'as': 'rtyp' }
  86.     
  87.     def data_size(self, _object, _attributes = { }, **_arguments):
  88.         '''data size: (optional) Return the size in bytes of an object
  89.         Required argument: the object whose data size is to be returned
  90.         Keyword argument as: the data type for which the size is calculated
  91.         Keyword argument _attributes: AppleEvent attribute dictionary
  92.         Returns: the size of the object in bytes
  93.         '''
  94.         _code = 'core'
  95.         _subcode = 'dsiz'
  96.         aetools.keysubst(_arguments, self._argmap_data_size)
  97.         _arguments['----'] = _object
  98.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  99.         if _arguments.get('errn', 0):
  100.             raise aetools.Error, aetools.decodeerror(_arguments)
  101.         
  102.         if _arguments.has_key('----'):
  103.             return _arguments['----']
  104.         
  105.  
  106.     
  107.     def delete(self, _object, _attributes = { }, **_arguments):
  108.         '''delete: Delete an object from its container. Note this does not work on script variables, only on elements of application classes.
  109.         Required argument: the element to delete
  110.         Keyword argument _attributes: AppleEvent attribute dictionary
  111.         '''
  112.         _code = 'core'
  113.         _subcode = 'delo'
  114.         if _arguments:
  115.             raise TypeError, 'No optional args expected'
  116.         
  117.         _arguments['----'] = _object
  118.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  119.         if _arguments.get('errn', 0):
  120.             raise aetools.Error, aetools.decodeerror(_arguments)
  121.         
  122.         if _arguments.has_key('----'):
  123.             return _arguments['----']
  124.         
  125.  
  126.     _argmap_duplicate = {
  127.         'to': 'insh',
  128.         'with_properties': 'prdt' }
  129.     
  130.     def duplicate(self, _object, _attributes = { }, **_arguments):
  131.         '''duplicate: Duplicate one or more objects
  132.         Required argument: the object(s) to duplicate
  133.         Keyword argument to: the new location for the object(s)
  134.         Keyword argument with_properties: the initial values for properties of the new object that are to be different from the original
  135.         Keyword argument _attributes: AppleEvent attribute dictionary
  136.         Returns: to the duplicated object(s)
  137.         '''
  138.         _code = 'core'
  139.         _subcode = 'clon'
  140.         aetools.keysubst(_arguments, self._argmap_duplicate)
  141.         _arguments['----'] = _object
  142.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  143.         if _arguments.get('errn', 0):
  144.             raise aetools.Error, aetools.decodeerror(_arguments)
  145.         
  146.         if _arguments.has_key('----'):
  147.             return _arguments['----']
  148.         
  149.  
  150.     _argmap_event_info = {
  151.         'in_': 'wrcd' }
  152.     
  153.     def event_info(self, _object, _attributes = { }, **_arguments):
  154.         '''event info: (optional) Get information about the Apple events in a suite
  155.         Required argument: the event class of the Apple events for which to return information
  156.         Keyword argument in_: the human language and script system in which to return information
  157.         Keyword argument _attributes: AppleEvent attribute dictionary
  158.         Returns: a record containing the events and their parameters
  159.         '''
  160.         _code = 'core'
  161.         _subcode = 'gtei'
  162.         aetools.keysubst(_arguments, self._argmap_event_info)
  163.         _arguments['----'] = _object
  164.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  165.         if _arguments.get('errn', 0):
  166.             raise aetools.Error, aetools.decodeerror(_arguments)
  167.         
  168.         if _arguments.has_key('----'):
  169.             return _arguments['----']
  170.         
  171.  
  172.     
  173.     def exists(self, _object, _attributes = { }, **_arguments):
  174.         '''exists: Verify if an object exists
  175.         Required argument: the object in question
  176.         Keyword argument _attributes: AppleEvent attribute dictionary
  177.         Returns: true if it exists, false if not
  178.         '''
  179.         _code = 'core'
  180.         _subcode = 'doex'
  181.         if _arguments:
  182.             raise TypeError, 'No optional args expected'
  183.         
  184.         _arguments['----'] = _object
  185.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  186.         if _arguments.get('errn', 0):
  187.             raise aetools.Error, aetools.decodeerror(_arguments)
  188.         
  189.         if _arguments.has_key('----'):
  190.             return _arguments['----']
  191.         
  192.  
  193.     
  194.     def handleBreakpoint(self, _object, _attributes = { }, **_arguments):
  195.         '''handleBreakpoint: return true to stop at a breakpoint
  196.         Required argument: the call frame of the breakpoint
  197.         Keyword argument _attributes: AppleEvent attribute dictionary
  198.         Returns: true to stop, false if not
  199.         '''
  200.         _code = 'core'
  201.         _subcode = 'brak'
  202.         if _arguments:
  203.             raise TypeError, 'No optional args expected'
  204.         
  205.         _arguments['----'] = _object
  206.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  207.         if _arguments.get('errn', 0):
  208.             raise aetools.Error, aetools.decodeerror(_arguments)
  209.         
  210.         if _arguments.has_key('----'):
  211.             return _arguments['----']
  212.         
  213.  
  214.     _argmap_make = {
  215.         'new': 'kocl',
  216.         'at': 'insh',
  217.         'with_data': 'data',
  218.         'with_properties': 'prdt' }
  219.     
  220.     def make(self, _no_object = None, _attributes = { }, **_arguments):
  221.         '''make: Make a new element
  222.         Keyword argument new: the class of the new element
  223.         Keyword argument at: the location at which to insert the element
  224.         Keyword argument with_data: the initial data for the element
  225.         Keyword argument with_properties: the initial values for the properties of the element
  226.         Keyword argument _attributes: AppleEvent attribute dictionary
  227.         Returns: to the new object(s)
  228.         '''
  229.         _code = 'core'
  230.         _subcode = 'crel'
  231.         aetools.keysubst(_arguments, self._argmap_make)
  232.         if _no_object != None:
  233.             raise TypeError, 'No direct arg expected'
  234.         
  235.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  236.         if _arguments.get('errn', 0):
  237.             raise aetools.Error, aetools.decodeerror(_arguments)
  238.         
  239.         if _arguments.has_key('----'):
  240.             return _arguments['----']
  241.         
  242.  
  243.     _argmap_move = {
  244.         'to': 'insh' }
  245.     
  246.     def move(self, _object, _attributes = { }, **_arguments):
  247.         '''move: Move object(s) to a new location
  248.         Required argument: the object(s) to move
  249.         Keyword argument to: the new location for the object(s)
  250.         Keyword argument _attributes: AppleEvent attribute dictionary
  251.         Returns: to the object(s) after they have been moved
  252.         '''
  253.         _code = 'core'
  254.         _subcode = 'move'
  255.         aetools.keysubst(_arguments, self._argmap_move)
  256.         _arguments['----'] = _object
  257.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  258.         if _arguments.get('errn', 0):
  259.             raise aetools.Error, aetools.decodeerror(_arguments)
  260.         
  261.         if _arguments.has_key('----'):
  262.             return _arguments['----']
  263.         
  264.  
  265.     
  266.     def open(self, _object, _attributes = { }, **_arguments):
  267.         '''open: Open the specified object(s)
  268.         Required argument: list of objects to open
  269.         Keyword argument _attributes: AppleEvent attribute dictionary
  270.         '''
  271.         _code = 'aevt'
  272.         _subcode = 'odoc'
  273.         if _arguments:
  274.             raise TypeError, 'No optional args expected'
  275.         
  276.         _arguments['----'] = _object
  277.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  278.         if _arguments.get('errn', 0):
  279.             raise aetools.Error, aetools.decodeerror(_arguments)
  280.         
  281.         if _arguments.has_key('----'):
  282.             return _arguments['----']
  283.         
  284.  
  285.     
  286.     def print_(self, _object, _attributes = { }, **_arguments):
  287.         '''print: Print the specified object(s)
  288.         Required argument: list of objects to print
  289.         Keyword argument _attributes: AppleEvent attribute dictionary
  290.         '''
  291.         _code = 'aevt'
  292.         _subcode = 'pdoc'
  293.         if _arguments:
  294.             raise TypeError, 'No optional args expected'
  295.         
  296.         _arguments['----'] = _object
  297.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  298.         if _arguments.get('errn', 0):
  299.             raise aetools.Error, aetools.decodeerror(_arguments)
  300.         
  301.         if _arguments.has_key('----'):
  302.             return _arguments['----']
  303.         
  304.  
  305.     _argmap_quit = {
  306.         'saving': 'savo' }
  307.     
  308.     def quit(self, _no_object = None, _attributes = { }, **_arguments):
  309.         '''quit: Quit an application
  310.         Keyword argument saving: specifies whether to save currently open documents
  311.         Keyword argument _attributes: AppleEvent attribute dictionary
  312.         '''
  313.         _code = 'aevt'
  314.         _subcode = 'quit'
  315.         aetools.keysubst(_arguments, self._argmap_quit)
  316.         if _no_object != None:
  317.             raise TypeError, 'No direct arg expected'
  318.         
  319.         aetools.enumsubst(_arguments, 'savo', _Enum_savo)
  320.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  321.         if _arguments.get('errn', 0):
  322.             raise aetools.Error, aetools.decodeerror(_arguments)
  323.         
  324.         if _arguments.has_key('----'):
  325.             return _arguments['----']
  326.         
  327.  
  328.     
  329.     def reopen(self, _no_object = None, _attributes = { }, **_arguments):
  330.         '''reopen: Reactivate a running application.  Some applications will open a new untitled window if no window is open.
  331.         Keyword argument _attributes: AppleEvent attribute dictionary
  332.         '''
  333.         _code = 'aevt'
  334.         _subcode = 'rapp'
  335.         if _arguments:
  336.             raise TypeError, 'No optional args expected'
  337.         
  338.         if _no_object != None:
  339.             raise TypeError, 'No direct arg expected'
  340.         
  341.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  342.         if _arguments.get('errn', 0):
  343.             raise aetools.Error, aetools.decodeerror(_arguments)
  344.         
  345.         if _arguments.has_key('----'):
  346.             return _arguments['----']
  347.         
  348.  
  349.     
  350.     def run(self, _no_object = None, _attributes = { }, **_arguments):
  351.         '''run: Run an application.  Most applications will open an empty, untitled window.
  352.         Keyword argument _attributes: AppleEvent attribute dictionary
  353.         '''
  354.         _code = 'aevt'
  355.         _subcode = 'oapp'
  356.         if _arguments:
  357.             raise TypeError, 'No optional args expected'
  358.         
  359.         if _no_object != None:
  360.             raise TypeError, 'No direct arg expected'
  361.         
  362.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  363.         if _arguments.get('errn', 0):
  364.             raise aetools.Error, aetools.decodeerror(_arguments)
  365.         
  366.         if _arguments.has_key('----'):
  367.             return _arguments['----']
  368.         
  369.  
  370.     _argmap_save = {
  371.         'in_': 'kfil',
  372.         'as': 'fltp' }
  373.     
  374.     def save(self, _object, _attributes = { }, **_arguments):
  375.         '''save: Save an object
  376.         Required argument: the object to save, usually a document or window
  377.         Keyword argument in_: the file or alias in which to save the object
  378.         Keyword argument as: the file type of the document in which to save the data
  379.         Keyword argument _attributes: AppleEvent attribute dictionary
  380.         '''
  381.         _code = 'core'
  382.         _subcode = 'save'
  383.         aetools.keysubst(_arguments, self._argmap_save)
  384.         _arguments['----'] = _object
  385.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  386.         if _arguments.get('errn', 0):
  387.             raise aetools.Error, aetools.decodeerror(_arguments)
  388.         
  389.         if _arguments.has_key('----'):
  390.             return _arguments['----']
  391.         
  392.  
  393.     
  394.     def select(self, _object, _attributes = { }, **_arguments):
  395.         '''select: Make a selection
  396.         Required argument: the object to select
  397.         Keyword argument _attributes: AppleEvent attribute dictionary
  398.         '''
  399.         _code = 'misc'
  400.         _subcode = 'slct'
  401.         if _arguments:
  402.             raise TypeError, 'No optional args expected'
  403.         
  404.         _arguments['----'] = _object
  405.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  406.         if _arguments.get('errn', 0):
  407.             raise aetools.Error, aetools.decodeerror(_arguments)
  408.         
  409.         if _arguments.has_key('----'):
  410.             return _arguments['----']
  411.         
  412.  
  413.     _argmap_suite_info = {
  414.         'in_': 'wrcd' }
  415.     
  416.     def suite_info(self, _object, _attributes = { }, **_arguments):
  417.         '''suite info: (optional) Get information about event suite(s)
  418.         Required argument: the suite for which to return information
  419.         Keyword argument in_: the human language and script system in which to return information
  420.         Keyword argument _attributes: AppleEvent attribute dictionary
  421.         Returns: a record containing the suites and their versions
  422.         '''
  423.         _code = 'core'
  424.         _subcode = 'gtsi'
  425.         aetools.keysubst(_arguments, self._argmap_suite_info)
  426.         _arguments['----'] = _object
  427.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  428.         if _arguments.get('errn', 0):
  429.             raise aetools.Error, aetools.decodeerror(_arguments)
  430.         
  431.         if _arguments.has_key('----'):
  432.             return _arguments['----']
  433.         
  434.  
  435.  
  436.  
  437. class alias(aetools.ComponentItem):
  438.     '''alias - a file on a disk or server.  The file must exist when you check the syntax of your script. '''
  439.     want = 'alis'
  440.  
  441.  
  442. class _Prop_POSIX_path(aetools.NProperty):
  443.     '''POSIX path - the POSIX path of the file '''
  444.     which = 'psxp'
  445.     want = 'TEXT'
  446.  
  447. aliases = alias
  448.  
  449. class application(aetools.ComponentItem):
  450.     '''application - An application program '''
  451.     want = 'capp'
  452.  
  453.  
  454. class _Prop_clipboard(aetools.NProperty):
  455.     '''clipboard - the contents of the clipboard for this application '''
  456.     which = 'pcli'
  457.     want = '****'
  458.  
  459. clipboard = _Prop_clipboard()
  460.  
  461. class _Prop_frontmost(aetools.NProperty):
  462.     '''frontmost - Is this the frontmost application? '''
  463.     which = 'pisf'
  464.     want = 'bool'
  465.  
  466. frontmost = _Prop_frontmost()
  467.  
  468. class _Prop_name(aetools.NProperty):
  469.     '''name - the name of the application '''
  470.     which = 'pnam'
  471.     want = 'itxt'
  472.  
  473. name = _Prop_name()
  474.  
  475. class _Prop_selection(aetools.NProperty):
  476.     '''selection - the selection visible to the user.  Use the \xd4select\xd5 command to set a new selection; use \xd4contents of selection\xd5 to get or change information in the document. '''
  477.     which = 'sele'
  478.     want = 'csel'
  479.  
  480. selection = _Prop_selection()
  481.  
  482. class _Prop_version(aetools.NProperty):
  483.     '''version - the version of the application '''
  484.     which = 'vers'
  485.     want = 'vers'
  486.  
  487. version = _Prop_version()
  488. applications = application
  489.  
  490. class insertion_points(aetools.ComponentItem):
  491.     '''insertion points -  '''
  492.     want = 'cins'
  493.  
  494. insertion_point = insertion_points
  495.  
  496. class selection_2d_object(aetools.ComponentItem):
  497.     '''selection-object - A way to refer to the state of the current of the selection.  Use the \xd4select\xd5 command to make a new selection. '''
  498.     want = 'csel'
  499.  
  500.  
  501. class _Prop_contents(aetools.NProperty):
  502.     '''contents - the information currently selected.  Use \xd4contents of selection\xd5 to get or change information in a document. '''
  503.     which = 'pcnt'
  504.     want = '****'
  505.  
  506.  
  507. class window(aetools.ComponentItem):
  508.     '''window - A window '''
  509.     want = 'cwin'
  510.  
  511.  
  512. class _Prop_bounds(aetools.NProperty):
  513.     '''bounds - the boundary rectangle for the window '''
  514.     which = 'pbnd'
  515.     want = 'qdrt'
  516.  
  517.  
  518. class _Prop_closeable(aetools.NProperty):
  519.     '''closeable - Does the window have a close box? '''
  520.     which = 'hclb'
  521.     want = 'bool'
  522.  
  523.  
  524. class _Prop_floating(aetools.NProperty):
  525.     '''floating - Does the window float? '''
  526.     which = 'isfl'
  527.     want = 'bool'
  528.  
  529.  
  530. class _Prop_index(aetools.NProperty):
  531.     '''index - the number of the window '''
  532.     which = 'pidx'
  533.     want = 'long'
  534.  
  535.  
  536. class _Prop_modal(aetools.NProperty):
  537.     '''modal - Is the window modal? '''
  538.     which = 'pmod'
  539.     want = 'bool'
  540.  
  541.  
  542. class _Prop_resizable(aetools.NProperty):
  543.     '''resizable - Is the window resizable? '''
  544.     which = 'prsz'
  545.     want = 'bool'
  546.  
  547.  
  548. class _Prop_titled(aetools.NProperty):
  549.     '''titled - Does the window have a title bar? '''
  550.     which = 'ptit'
  551.     want = 'bool'
  552.  
  553.  
  554. class _Prop_visible(aetools.NProperty):
  555.     '''visible - Is the window visible? '''
  556.     which = 'pvis'
  557.     want = 'bool'
  558.  
  559.  
  560. class _Prop_zoomable(aetools.NProperty):
  561.     '''zoomable - Is the window zoomable? '''
  562.     which = 'iszm'
  563.     want = 'bool'
  564.  
  565.  
  566. class _Prop_zoomed(aetools.NProperty):
  567.     '''zoomed - Is the window zoomed? '''
  568.     which = 'pzum'
  569.     want = 'bool'
  570.  
  571. windows = window
  572.  
  573. class document(aetools.ComponentItem):
  574.     '''document - A document of a scriptable application '''
  575.     want = 'docu'
  576.  
  577.  
  578. class _Prop_modified(aetools.NProperty):
  579.     '''modified - Has the document been modified since the last save? '''
  580.     which = 'imod'
  581.     want = 'bool'
  582.  
  583. documents = document
  584.  
  585. class file(aetools.ComponentItem):
  586.     '''file - a file on a disk or server '''
  587.     want = 'file'
  588.  
  589. files = file
  590. alias._superclassnames = []
  591. alias._privpropdict = {
  592.     'POSIX_path': _Prop_POSIX_path }
  593. alias._privelemdict = { }
  594. application._superclassnames = []
  595. application._privpropdict = {
  596.     'clipboard': _Prop_clipboard,
  597.     'frontmost': _Prop_frontmost,
  598.     'name': _Prop_name,
  599.     'selection': _Prop_selection,
  600.     'version': _Prop_version }
  601. application._privelemdict = { }
  602. insertion_points._superclassnames = []
  603. insertion_points._privpropdict = { }
  604. insertion_points._privelemdict = { }
  605. selection_2d_object._superclassnames = []
  606. selection_2d_object._privpropdict = {
  607.     'contents': _Prop_contents }
  608. selection_2d_object._privelemdict = { }
  609. window._superclassnames = []
  610. window._privpropdict = {
  611.     'bounds': _Prop_bounds,
  612.     'closeable': _Prop_closeable,
  613.     'floating': _Prop_floating,
  614.     'index': _Prop_index,
  615.     'modal': _Prop_modal,
  616.     'resizable': _Prop_resizable,
  617.     'titled': _Prop_titled,
  618.     'visible': _Prop_visible,
  619.     'zoomable': _Prop_zoomable,
  620.     'zoomed': _Prop_zoomed }
  621. window._privelemdict = { }
  622. document._superclassnames = []
  623. document._privpropdict = {
  624.     'modified': _Prop_modified }
  625. document._privelemdict = { }
  626. file._superclassnames = []
  627. file._privpropdict = {
  628.     'POSIX_path': _Prop_POSIX_path }
  629. file._privelemdict = { }
  630.  
  631. class _3c_(aetools.NComparison):
  632.     '''< - Less than '''
  633.     pass
  634.  
  635.  
  636. class _3d_(aetools.NComparison):
  637.     '''= - Equal '''
  638.     pass
  639.  
  640.  
  641. class _3e_(aetools.NComparison):
  642.     '''> - Greater than '''
  643.     pass
  644.  
  645.  
  646. class contains(aetools.NComparison):
  647.     '''contains - Contains '''
  648.     pass
  649.  
  650.  
  651. class ends_with(aetools.NComparison):
  652.     '''ends with - Ends with '''
  653.     pass
  654.  
  655.  
  656. class starts_with(aetools.NComparison):
  657.     '''starts with - Starts with '''
  658.     pass
  659.  
  660.  
  661. class _b2_(aetools.NComparison):
  662.     '''\xb2 - Less than or equal to '''
  663.     pass
  664.  
  665.  
  666. class _b3_(aetools.NComparison):
  667.     '''\xb3 - Greater than or equal to '''
  668.     pass
  669.  
  670. _Enum_kfrm = {
  671.     'index': 'indx',
  672.     'named': 'name',
  673.     'id': 'ID  ' }
  674. _Enum_savo = {
  675.     'yes': 'yes ',
  676.     'no': 'no  ',
  677.     'ask': 'ask ' }
  678. _Enum_styl = {
  679.     'plain': 'plan',
  680.     'bold': 'bold',
  681.     'italic': 'ital',
  682.     'outline': 'outl',
  683.     'shadow': 'shad',
  684.     'underline': 'undl',
  685.     'superscript': 'spsc',
  686.     'subscript': 'sbsc',
  687.     'strikethrough': 'strk',
  688.     'small_caps': 'smcp',
  689.     'all_caps': 'alcp',
  690.     'all_lowercase': 'lowc',
  691.     'condensed': 'cond',
  692.     'expanded': 'pexp',
  693.     'hidden': 'hidn' }
  694. _classdeclarations = {
  695.     'alis': alias,
  696.     'capp': application,
  697.     'cins': insertion_points,
  698.     'csel': selection_2d_object,
  699.     'cwin': window,
  700.     'docu': document,
  701.     'file': file }
  702. _propdeclarations = {
  703.     'hclb': _Prop_closeable,
  704.     'imod': _Prop_modified,
  705.     'isfl': _Prop_floating,
  706.     'iszm': _Prop_zoomable,
  707.     'pbnd': _Prop_bounds,
  708.     'pcli': _Prop_clipboard,
  709.     'pcnt': _Prop_contents,
  710.     'pidx': _Prop_index,
  711.     'pisf': _Prop_frontmost,
  712.     'pmod': _Prop_modal,
  713.     'pnam': _Prop_name,
  714.     'prsz': _Prop_resizable,
  715.     'psxp': _Prop_POSIX_path,
  716.     'ptit': _Prop_titled,
  717.     'pvis': _Prop_visible,
  718.     'pzum': _Prop_zoomed,
  719.     'sele': _Prop_selection,
  720.     'vers': _Prop_version }
  721. _compdeclarations = {
  722.     '<   ': _3c_,
  723.     '<=  ': _b2_,
  724.     '=   ': _3d_,
  725.     '>   ': _3e_,
  726.     '>=  ': _b3_,
  727.     'bgwt': starts_with,
  728.     'cont': contains,
  729.     'ends': ends_with }
  730. _enumdeclarations = {
  731.     'kfrm': _Enum_kfrm,
  732.     'savo': _Enum_savo,
  733.     'styl': _Enum_styl }
  734.