ยปCore Development>Code coverage>Lib/plat-mac/lib-scriptpackages/SystemEvents/Processes_Suite.py

Python code coverage for Lib/plat-mac/lib-scriptpackages/SystemEvents/Processes_Suite.py

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