/Lib/plat-mac/lib-scriptpackages/Finder/Files.py

http://unladen-swallow.googlecode.com/ · Python · 212 lines · 195 code · 8 blank · 9 comment · 4 complexity · 81c620bf9d06bfd77de7e6e9be490658 MD5 · raw file

  1. """Suite Files: Classes representing files
  2. Level 1, version 1
  3. Generated from /System/Library/CoreServices/Finder.app
  4. AETE/AEUT resource version 0/144, language 0, script 0
  5. """
  6. import aetools
  7. import MacOS
  8. _code = 'fndr'
  9. class Files_Events:
  10. pass
  11. class alias_file(aetools.ComponentItem):
  12. """alias file - An alias file (created with \xd2Make Alias\xd3) """
  13. want = 'alia'
  14. class _Prop__3c_Inheritance_3e_(aetools.NProperty):
  15. """<Inheritance> - inherits some of its properties from the file class """
  16. which = 'c@#^'
  17. want = 'file'
  18. class _Prop_original_item(aetools.NProperty):
  19. """original item - the original item pointed to by the alias """
  20. which = 'orig'
  21. want = 'obj '
  22. alias_files = alias_file
  23. class application_file(aetools.ComponentItem):
  24. """application file - An application's file on disk """
  25. want = 'appf'
  26. class _Prop_accepts_high_level_events(aetools.NProperty):
  27. """accepts high level events - Is the application high-level event aware? (OBSOLETE: always returns true) """
  28. which = 'isab'
  29. want = 'bool'
  30. class _Prop_has_scripting_terminology(aetools.NProperty):
  31. """has scripting terminology - Does the process have a scripting terminology, i.e., can it be scripted? """
  32. which = 'hscr'
  33. want = 'bool'
  34. class _Prop_minimum_size(aetools.NProperty):
  35. """minimum size - the smallest memory size with which the application can be launched """
  36. which = 'mprt'
  37. want = 'long'
  38. class _Prop_opens_in_Classic(aetools.NProperty):
  39. """opens in Classic - Should the application launch in the Classic environment? """
  40. which = 'Clsc'
  41. want = 'bool'
  42. class _Prop_preferred_size(aetools.NProperty):
  43. """preferred size - the memory size with which the application will be launched """
  44. which = 'appt'
  45. want = 'long'
  46. class _Prop_suggested_size(aetools.NProperty):
  47. """suggested size - the memory size with which the developer recommends the application be launched """
  48. which = 'sprt'
  49. want = 'long'
  50. application_files = application_file
  51. class clipping(aetools.ComponentItem):
  52. """clipping - A clipping """
  53. want = 'clpf'
  54. class _Prop_clipping_window(aetools.NProperty):
  55. """clipping window - (NOT AVAILABLE YET) the clipping window for this clipping """
  56. which = 'lwnd'
  57. want = 'obj '
  58. clippings = clipping
  59. class document_file(aetools.ComponentItem):
  60. """document file - A document file """
  61. want = 'docf'
  62. document_files = document_file
  63. class file(aetools.ComponentItem):
  64. """file - A file """
  65. want = 'file'
  66. class _Prop_creator_type(aetools.NProperty):
  67. """creator type - the OSType identifying the application that created the item """
  68. which = 'fcrt'
  69. want = 'type'
  70. class _Prop_file_type(aetools.NProperty):
  71. """file type - the OSType identifying the type of data contained in the item """
  72. which = 'asty'
  73. want = 'type'
  74. class _Prop_product_version(aetools.NProperty):
  75. """product version - the version of the product (visible at the top of the \xd2Get Info\xd3 window) """
  76. which = 'ver2'
  77. want = 'utxt'
  78. class _Prop_stationery(aetools.NProperty):
  79. """stationery - Is the file a stationery pad? """
  80. which = 'pspd'
  81. want = 'bool'
  82. class _Prop_version(aetools.NProperty):
  83. """version - the version of the file (visible at the bottom of the \xd2Get Info\xd3 window) """
  84. which = 'vers'
  85. want = 'utxt'
  86. files = file
  87. class internet_location_file(aetools.ComponentItem):
  88. """internet location file - An file containing an internet location """
  89. want = 'inlf'
  90. class _Prop_location(aetools.NProperty):
  91. """location - the internet location """
  92. which = 'iloc'
  93. want = 'utxt'
  94. internet_location_files = internet_location_file
  95. class package(aetools.ComponentItem):
  96. """package - A package """
  97. want = 'pack'
  98. packages = package
  99. alias_file._superclassnames = ['file']
  100. alias_file._privpropdict = {
  101. '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
  102. 'original_item' : _Prop_original_item,
  103. }
  104. alias_file._privelemdict = {
  105. }
  106. application_file._superclassnames = ['file']
  107. application_file._privpropdict = {
  108. '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
  109. 'accepts_high_level_events' : _Prop_accepts_high_level_events,
  110. 'has_scripting_terminology' : _Prop_has_scripting_terminology,
  111. 'minimum_size' : _Prop_minimum_size,
  112. 'opens_in_Classic' : _Prop_opens_in_Classic,
  113. 'preferred_size' : _Prop_preferred_size,
  114. 'suggested_size' : _Prop_suggested_size,
  115. }
  116. application_file._privelemdict = {
  117. }
  118. clipping._superclassnames = ['file']
  119. clipping._privpropdict = {
  120. '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
  121. 'clipping_window' : _Prop_clipping_window,
  122. }
  123. clipping._privelemdict = {
  124. }
  125. document_file._superclassnames = ['file']
  126. document_file._privpropdict = {
  127. '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
  128. }
  129. document_file._privelemdict = {
  130. }
  131. import Finder_items
  132. file._superclassnames = ['item']
  133. file._privpropdict = {
  134. '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
  135. 'creator_type' : _Prop_creator_type,
  136. 'file_type' : _Prop_file_type,
  137. 'product_version' : _Prop_product_version,
  138. 'stationery' : _Prop_stationery,
  139. 'version' : _Prop_version,
  140. }
  141. file._privelemdict = {
  142. }
  143. internet_location_file._superclassnames = ['file']
  144. internet_location_file._privpropdict = {
  145. '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
  146. 'location' : _Prop_location,
  147. }
  148. internet_location_file._privelemdict = {
  149. }
  150. package._superclassnames = ['item']
  151. package._privpropdict = {
  152. '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
  153. }
  154. package._privelemdict = {
  155. }
  156. #
  157. # Indices of types declared in this module
  158. #
  159. _classdeclarations = {
  160. 'alia' : alias_file,
  161. 'appf' : application_file,
  162. 'clpf' : clipping,
  163. 'docf' : document_file,
  164. 'file' : file,
  165. 'inlf' : internet_location_file,
  166. 'pack' : package,
  167. }
  168. _propdeclarations = {
  169. 'Clsc' : _Prop_opens_in_Classic,
  170. 'appt' : _Prop_preferred_size,
  171. 'asty' : _Prop_file_type,
  172. 'c@#^' : _Prop__3c_Inheritance_3e_,
  173. 'fcrt' : _Prop_creator_type,
  174. 'hscr' : _Prop_has_scripting_terminology,
  175. 'iloc' : _Prop_location,
  176. 'isab' : _Prop_accepts_high_level_events,
  177. 'lwnd' : _Prop_clipping_window,
  178. 'mprt' : _Prop_minimum_size,
  179. 'orig' : _Prop_original_item,
  180. 'pspd' : _Prop_stationery,
  181. 'sprt' : _Prop_suggested_size,
  182. 'ver2' : _Prop_product_version,
  183. 'vers' : _Prop_version,
  184. }
  185. _compdeclarations = {
  186. }
  187. _enumdeclarations = {
  188. }