ó
Ò¬Qc           @   sl   d  Z  d d l Z d d l Z d Z d d l Td e f d „  ƒ  YZ e Z e Z i  Z	 i  Z
 i  Z i  Z d S(   sË   Suite Standard Suite: Common terms that most applications should support
Level 1, version 1

Generated from /System/Library/CoreServices/Finder.app
AETE/AEUT resource version 0/144, language 0, script 0
iÿÿÿÿNt   CoRe(   t   *t   Standard_Suite_Eventsc           B   s8  e  Z i  d  „ Z i d d 6Z i  d „ Z i d d 6Z i  d „ Z i  d „ Z i d d	 6d
 d 6d d 6Z i  d „ Z	 i  d „ Z
 i d d 6d d 6d d	 6d d 6Z d i  d „ Z i d d	 6d
 d 6d d 6d d 6Z i  d „ Z i d d 6d d 6Z i  d „ Z i d d 6Z i  d „ Z d i  d „ Z i  d „ Z RS(    c         K   sŽ   d } d } | r t  d ‚ n  | | d <|  j | | | | ƒ \ } } } | j d d ƒ rs t j t j | ƒ ‚ n  | j d ƒ rŠ | d Sd S(   s”   close: Close an object
        Required argument: the object to close
        Keyword argument _attributes: AppleEvent attribute dictionary
        t   coret   closs   No optional args expecteds   ----t   errni    N(   t	   TypeErrort   sendt   gett   aetoolst   Errort   decodeerrort   has_key(   t   selft   _objectt   _attributest
   _argumentst   _codet   _subcodet   _reply(    (    s^   /Users/tom/newbuild/install/lib/python2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.pyt   close   s     
t   koclt   eachc         K   s   d } d } t  j | |  j ƒ | | d <|  j | | | | ƒ \ } } } | j d d ƒ rt t  j t  j | ƒ ‚ n  | j d ƒ r‹ | d Sd S(   sP  count: Return the number of elements of a particular class within an object
        Required argument: the object whose elements are to be counted
        Keyword argument each: the class of the elements to be counted
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: the number of elements
        R   t   cntes   ----R   i    N(   R	   t   keysubstt   _argmap_countR   R   R
   R   R   (   R   R   R   R   R   R   R   (    (    s^   /Users/tom/newbuild/install/lib/python2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.pyt   count(   s    
t   rtypt   asc         K   s   d } d } t  j | |  j ƒ | | d <|  j | | | | ƒ \ } } } | j d d ƒ rt t  j t  j | ƒ ‚ n  | j d ƒ r‹ | d Sd S(   sD  data size: Return the size in bytes of an object
        Required argument: the object whose data size is to be returned
        Keyword argument as: the data type for which the size is calculated
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: the size of the object in bytes
        R   t   dsizs   ----R   i    N(   R	   R   t   _argmap_data_sizeR   R   R
   R   R   (   R   R   R   R   R   R   R   (    (    s^   /Users/tom/newbuild/install/lib/python2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.pyt	   data_sizeB   s    
c         K   sŽ   d } d } | r t  d ‚ n  | | d <|  j | | | | ƒ \ } } } | j d d ƒ rs t j t j | ƒ ‚ n  | j d ƒ rŠ | d Sd S(   sä   delete: Move an item from its container to the trash
        Required argument: the item to delete
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: to the item that was just deleted
        R   t   delos   No optional args expecteds   ----R   i    N(   R   R   R   R	   R
   R   R   (   R   R   R   R   R   R   R   (    (    s^   /Users/tom/newbuild/install/lib/python2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.pyt   deleteX   s     
t   insht   tot   alrpt	   replacingt   routt   routing_suppressedc         K   sµ   d } d } t  j | |  j ƒ | | d <t  j | d t ƒ t  j | d t ƒ |  j | | | | ƒ \ } } } | j d d ƒ rš t  j t  j | ƒ ‚ n  | j	 d ƒ r± | d Sd S(	   sL  duplicate: Duplicate one or more object(s)
        Required argument: the object(s) to duplicate
        Keyword argument to: the new location for the object(s)
        Keyword argument replacing: Specifies whether or not to replace items in the destination that have the same name as items being duplicated
        Keyword argument routing_suppressed: Specifies whether or not to autoroute items (default is false). Only applies when copying to the system folder.
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: to the duplicated object(s)
        R   t   clons   ----R$   R&   R   i    N(
   R	   R   t   _argmap_duplicatet	   enumsubstt
   _Enum_boolR   R   R
   R   R   (   R   R   R   R   R   R   R   (    (    s^   /Users/tom/newbuild/install/lib/python2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.pyt	   duplicates   s    	
c         K   sŽ   d } d } | r t  d ‚ n  | | d <|  j | | | | ƒ \ } } } | j d d ƒ rs t j t j | ƒ ‚ n  | j d ƒ rŠ | d Sd S(   sÔ   exists: Verify if an object exists
        Required argument: the object in question
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: true if it exists, false if not
        R   t   doexs   No optional args expecteds   ----R   i    N(   R   R   R   R	   R
   R   R   (   R   R   R   R   R   R   R   (    (    s^   /Users/tom/newbuild/install/lib/python2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.pyt   exists   s     
t   newt   ats   to  t   prdtt   with_propertiesc         K   s   d } d } t  j | |  j ƒ | d k	 r7 t d ‚ n  |  j | | | | ƒ \ } } } | j d d ƒ r‚ t  j t  j | ƒ ‚ n  | j	 d ƒ r™ | d Sd S(   s  make: Make a new element
        Keyword argument new: the class of the new element
        Keyword argument at: the location at which to insert the element
        Keyword argument to: when creating an alias file, the original item to create an alias to or when creating a file viewer window, the target of the window
        Keyword argument with_properties: the initial values for the properties of the element
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: to the new object(s)
        R   t   crels   No direct arg expectedR   i    s   ----N(
   R	   R   t   _argmap_maket   NoneR   R   R   R
   R   R   (   R   t
   _no_objectR   R   R   R   R   (    (    s^   /Users/tom/newbuild/install/lib/python2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.pyt   make©   s    	 t   mvplt   positioned_atc         K   sÈ   d } d } t  j | |  j ƒ | | d <t  j | d t ƒ t  j | d t ƒ t  j | d t ƒ |  j | | | | ƒ \ } } } | j d d ƒ r­ t  j t  j	 | ƒ ‚ n  | j
 d ƒ rÄ | d Sd	 S(
   sÇ  move: Move object(s) to a new location
        Required argument: the object(s) to move
        Keyword argument to: the new location for the object(s)
        Keyword argument replacing: Specifies whether or not to replace items in the destination that have the same name as items being moved
        Keyword argument positioned_at: Gives a list (in local window coordinates) of positions for the destination items
        Keyword argument routing_suppressed: Specifies whether or not to autoroute items (default is false). Only applies when moving to the system folder.
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: to the object(s) after they have been moved
        R   t   moves   ----R$   R8   R&   R   i    N(   R	   R   t   _argmap_moveR*   R+   t
   _Enum_listR   R   R
   R   R   (   R   R   R   R   R   R   R   (    (    s^   /Users/tom/newbuild/install/lib/python2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.pyR:   È   s    

t   usint   usingc         K   s   d } d } t  j | |  j ƒ | | d <|  j | | | | ƒ \ } } } | j d d ƒ rt t  j t  j | ƒ ‚ n  | j d ƒ r‹ | d Sd S(   sœ  open: Open the specified object(s)
        Required argument: list of objects to open
        Keyword argument using: the application file to open the object with
        Keyword argument with_properties: the initial values for the properties, to be included with the open command sent to the application that opens the direct object
        Keyword argument _attributes: AppleEvent attribute dictionary
        t   aevtt   odocs   ----R   i    N(   R	   R   t   _argmap_openR   R   R
   R   R   (   R   R   R   R   R   R   R   (    (    s^   /Users/tom/newbuild/install/lib/python2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.pyt   opené   s    
c         K   s   d } d } t  j | |  j ƒ | | d <|  j | | | | ƒ \ } } } | j d d ƒ rt t  j t  j | ƒ ‚ n  | j d ƒ r‹ | d Sd S(   sA  print: Print the specified object(s)
        Required argument: list of objects to print
        Keyword argument with_properties: optional properties to be included with the print command sent to the application that prints the direct object
        Keyword argument _attributes: AppleEvent attribute dictionary
        R?   t   pdocs   ----R   i    N(   R	   R   t   _argmap_print_R   R   R
   R   R   (   R   R   R   R   R   R   R   (    (    s^   /Users/tom/newbuild/install/lib/python2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.pyt   print_  s    
c         K   sœ   d } d } | r t  d ‚ n  | d k	 r6 t  d ‚ n  |  j | | | | ƒ \ } } } | j d d ƒ r t j t j | ƒ ‚ n  | j d ƒ r˜ | d Sd S(	   sd   quit: Quit the Finder
        Keyword argument _attributes: AppleEvent attribute dictionary
        R?   t   quits   No optional args expecteds   No direct arg expectedR   i    s   ----N(   R   R5   R   R   R	   R
   R   R   (   R   R6   R   R   R   R   R   (    (    s^   /Users/tom/newbuild/install/lib/python2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.pyRF     s      c         K   sŽ   d } d } | r t  d ‚ n  | | d <|  j | | | | ƒ \ } } } | j d d ƒ rs t j t j | ƒ ‚ n  | j d ƒ rŠ | d Sd S(   s¥   select: Select the specified object(s)
        Required argument: the object to select
        Keyword argument _attributes: AppleEvent attribute dictionary
        t   misct   slcts   No optional args expecteds   ----R   i    N(   R   R   R   R	   R
   R   R   (   R   R   R   R   R   R   R   (    (    s^   /Users/tom/newbuild/install/lib/python2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.pyt   select+  s     
N(   t   __name__t
   __module__R   R   R   R   R   R!   R)   R,   R.   R4   R5   R7   R;   R:   RA   RB   RD   RE   RF   RI   (    (    (    s^   /Users/tom/newbuild/install/lib/python2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.pyR      sF   






(   t   __doc__R	   t   MacOSR   t   StdSuites.Standard_SuiteR   R5   R<   R+   t   _classdeclarationst   _propdeclarationst   _compdeclarationst   _enumdeclarations(    (    (    s^   /Users/tom/newbuild/install/lib/python2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.pyt   <module>   s   
ÿ 2