~ubuntu-branches/ubuntu/karmic/pypy/karmic

« back to all changes in this revision

Viewing changes to lib-python/2.4.1/plat-mac/lib-scriptpackages/SystemEvents/Processes_Suite.py

  • Committer: Bazaar Package Importer
  • Author(s): Alexandre Fayolle
  • Date: 2007-04-13 09:33:09 UTC
  • Revision ID: james.westby@ubuntu.com-20070413093309-yoojh4jcoocu2krz
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""Suite Processes Suite: Terms and Events for controlling Processes
 
2
Level 1, version 1
 
3
 
 
4
Generated from /System/Library/CoreServices/System Events.app
 
5
AETE/AEUT resource version 1/0, language 0, script 0
 
6
"""
 
7
 
 
8
import aetools
 
9
import MacOS
 
10
 
 
11
_code = 'prcs'
 
12
 
 
13
class Processes_Suite_Events:
 
14
 
 
15
    pass
 
16
 
 
17
 
 
18
class application(aetools.ComponentItem):
 
19
    """application - The Processes Suite host program """
 
20
    want = 'capp'
 
21
class _Prop__3c_Inheritance_3e_(aetools.NProperty):
 
22
    """<Inheritance> - All of the properties of the superclass. """
 
23
    which = 'c@#^'
 
24
    want = 'capp'
 
25
_3c_Inheritance_3e_ = _Prop__3c_Inheritance_3e_()
 
26
class _Prop_folder_actions_enabled(aetools.NProperty):
 
27
    """folder actions enabled - Are Folder Actions currently being processed? """
 
28
    which = 'faen'
 
29
    want = 'bool'
 
30
folder_actions_enabled = _Prop_folder_actions_enabled()
 
31
class _Prop_properties(aetools.NProperty):
 
32
    """properties - every property of the Processes Suite host program """
 
33
    which = 'pALL'
 
34
    want = '****'
 
35
properties = _Prop_properties()
 
36
#        element 'cdis' as ['name', 'indx', 'rele', 'rang', 'test']
 
37
#        element 'cfol' as ['name', 'indx', 'rele', 'rang', 'test']
 
38
#        element 'cobj' as ['name', 'indx', 'rele', 'rang', 'test']
 
39
#        element 'cwin' as ['name', 'indx', 'rele', 'rang', 'test', 'ID  ']
 
40
#        element 'docu' as ['name', 'indx', 'rele', 'rang', 'test']
 
41
#        element 'file' as ['name', 'indx', 'rele', 'rang', 'test']
 
42
#        element 'foac' as ['name', 'indx', 'rele', 'rang', 'test']
 
43
#        element 'logi' as ['name', 'indx', 'rele', 'rang', 'test']
 
44
#        element 'pcap' as ['name', 'indx', 'rele', 'rang', 'test']
 
45
#        element 'pcda' as ['name', 'indx', 'rele', 'rang', 'test']
 
46
#        element 'prcs' as ['name', 'indx', 'rele', 'rang', 'test']
 
47
 
 
48
applications = application
 
49
 
 
50
class application_process(aetools.ComponentItem):
 
51
    """application process - A process launched from an application file """
 
52
    want = 'pcap'
 
53
class _Prop_application_file(aetools.NProperty):
 
54
    """application file - a reference to the application file from which this process was launched """
 
55
    which = 'appf'
 
56
    want = '****'
 
57
 
 
58
application_processes = application_process
 
59
 
 
60
class desk_accessory_process(aetools.ComponentItem):
 
61
    """desk accessory process - A process launched from an desk accessory file """
 
62
    want = 'pcda'
 
63
class _Prop_desk_accessory_file(aetools.NProperty):
 
64
    """desk accessory file - a reference to the desk accessory file from which this process was launched """
 
65
    which = 'dafi'
 
66
    want = '****'
 
67
 
 
68
desk_accessory_processes = desk_accessory_process
 
69
 
 
70
class process(aetools.ComponentItem):
 
71
    """process - A process running on this computer """
 
72
    want = 'prcs'
 
73
class _Prop_accepts_high_level_events(aetools.NProperty):
 
74
    """accepts high level events - Is the process high-level event aware (accepts open application, open document, print document, and quit)? """
 
75
    which = 'isab'
 
76
    want = 'bool'
 
77
class _Prop_accepts_remote_events(aetools.NProperty):
 
78
    """accepts remote events - Does the process accept remote events? """
 
79
    which = 'revt'
 
80
    want = 'bool'
 
81
class _Prop_classic(aetools.NProperty):
 
82
    """classic - Is the process running in the Classic environment? """
 
83
    which = 'clsc'
 
84
    want = 'bool'
 
85
class _Prop_creator_type(aetools.NProperty):
 
86
    """creator type - the OSType of the creator of the process (the signature) """
 
87
    which = 'fcrt'
 
88
    want = 'utxt'
 
89
class _Prop_file(aetools.NProperty):
 
90
    """file - the file from which the process was launched """
 
91
    which = 'file'
 
92
    want = '****'
 
93
class _Prop_file_type(aetools.NProperty):
 
94
    """file type - the OSType of the file type of the process """
 
95
    which = 'asty'
 
96
    want = 'utxt'
 
97
class _Prop_frontmost(aetools.NProperty):
 
98
    """frontmost - Is the process the frontmost process """
 
99
    which = 'pisf'
 
100
    want = 'bool'
 
101
class _Prop_has_scripting_terminology(aetools.NProperty):
 
102
    """has scripting terminology - Does the process have a scripting terminology, i.e., can it be scripted? """
 
103
    which = 'hscr'
 
104
    want = 'bool'
 
105
class _Prop_name(aetools.NProperty):
 
106
    """name - the name of the process """
 
107
    which = 'pnam'
 
108
    want = 'utxt'
 
109
class _Prop_partition_space_used(aetools.NProperty):
 
110
    """partition space used - the number of bytes currently used in the process' partition """
 
111
    which = 'pusd'
 
112
    want = 'magn'
 
113
class _Prop_total_partition_size(aetools.NProperty):
 
114
    """total partition size - the size of the partition with which the process was launched """
 
115
    which = 'appt'
 
116
    want = 'magn'
 
117
class _Prop_visible(aetools.NProperty):
 
118
    """visible - Is the process' layer visible? """
 
119
    which = 'pvis'
 
120
    want = 'bool'
 
121
 
 
122
processes = process
 
123
application._superclassnames = []
 
124
import Disk_Folder_File_Suite
 
125
import Standard_Suite
 
126
import Folder_Actions_Suite
 
127
import Login_Items_Suite
 
128
application._privpropdict = {
 
129
    '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
 
130
    'folder_actions_enabled' : _Prop_folder_actions_enabled,
 
131
    'properties' : _Prop_properties,
 
132
}
 
133
application._privelemdict = {
 
134
    'application_process' : application_process,
 
135
    'desk_accessory_process' : desk_accessory_process,
 
136
    'disk' : Disk_Folder_File_Suite.disk,
 
137
    'document' : Standard_Suite.document,
 
138
    'file' : Disk_Folder_File_Suite.file,
 
139
    'folder' : Disk_Folder_File_Suite.folder,
 
140
    'folder_action' : Folder_Actions_Suite.folder_action,
 
141
    'item' : Disk_Folder_File_Suite.item,
 
142
    'login_item' : Login_Items_Suite.login_item,
 
143
    'process' : process,
 
144
    'window' : Standard_Suite.window,
 
145
}
 
146
application_process._superclassnames = ['process']
 
147
application_process._privpropdict = {
 
148
    '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
 
149
    'application_file' : _Prop_application_file,
 
150
}
 
151
application_process._privelemdict = {
 
152
}
 
153
desk_accessory_process._superclassnames = ['process']
 
154
desk_accessory_process._privpropdict = {
 
155
    '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
 
156
    'desk_accessory_file' : _Prop_desk_accessory_file,
 
157
}
 
158
desk_accessory_process._privelemdict = {
 
159
}
 
160
process._superclassnames = ['item']
 
161
process._privpropdict = {
 
162
    '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
 
163
    'accepts_high_level_events' : _Prop_accepts_high_level_events,
 
164
    'accepts_remote_events' : _Prop_accepts_remote_events,
 
165
    'classic' : _Prop_classic,
 
166
    'creator_type' : _Prop_creator_type,
 
167
    'file' : _Prop_file,
 
168
    'file_type' : _Prop_file_type,
 
169
    'frontmost' : _Prop_frontmost,
 
170
    'has_scripting_terminology' : _Prop_has_scripting_terminology,
 
171
    'name' : _Prop_name,
 
172
    'partition_space_used' : _Prop_partition_space_used,
 
173
    'properties' : _Prop_properties,
 
174
    'total_partition_size' : _Prop_total_partition_size,
 
175
    'visible' : _Prop_visible,
 
176
}
 
177
process._privelemdict = {
 
178
}
 
179
 
 
180
#
 
181
# Indices of types declared in this module
 
182
#
 
183
_classdeclarations = {
 
184
    'capp' : application,
 
185
    'pcap' : application_process,
 
186
    'pcda' : desk_accessory_process,
 
187
    'prcs' : process,
 
188
}
 
189
 
 
190
_propdeclarations = {
 
191
    'appf' : _Prop_application_file,
 
192
    'appt' : _Prop_total_partition_size,
 
193
    'asty' : _Prop_file_type,
 
194
    'c@#^' : _Prop__3c_Inheritance_3e_,
 
195
    'clsc' : _Prop_classic,
 
196
    'dafi' : _Prop_desk_accessory_file,
 
197
    'faen' : _Prop_folder_actions_enabled,
 
198
    'fcrt' : _Prop_creator_type,
 
199
    'file' : _Prop_file,
 
200
    'hscr' : _Prop_has_scripting_terminology,
 
201
    'isab' : _Prop_accepts_high_level_events,
 
202
    'pALL' : _Prop_properties,
 
203
    'pisf' : _Prop_frontmost,
 
204
    'pnam' : _Prop_name,
 
205
    'pusd' : _Prop_partition_space_used,
 
206
    'pvis' : _Prop_visible,
 
207
    'revt' : _Prop_accepts_remote_events,
 
208
}
 
209
 
 
210
_compdeclarations = {
 
211
}
 
212
 
 
213
_enumdeclarations = {
 
214
}