Lines Matching refs:processname
218 def isactiveprocess(processname):
219 """Check of processname is active. MacOS9"""
223 if n == processname:
227 def processinfo(processname):
228 """Return an object with all process properties as attributes for processname. MacOS9"""
231 if processname == "Finder":
235 p.partition = _processproperty(processname, 'appt')
236 p.used = _processproperty(processname, 'pusd')
237 p.visible = _processproperty(processname, 'pvis') #Is the process' layer visible?
238 p.frontmost = _processproperty(processname, 'pisf') #Is the process the frontmost process?
239 p.file = _processproperty(processname, 'file') #the file from which the process was launched
240 p.filetype = _processproperty(processname, 'asty') #the OSType of the file type of the process
241 p.creatortype = _processproperty(processname, 'fcrt') #the OSType of the creator of the process (the signature)
242 p.accepthighlevel = _processproperty(processname, 'revt') #Is the process high-level event aware (accepts open application, open document, print document, and quit)?
243 p.hasscripting = _processproperty(processname, 'hscr') #Does the process have a scripting terminology, i.e., can it be scripted?
246 def _processproperty(processname, property):
247 """return the partition size and memory used for processname"""
251 aeobj_00 = aetypes.ObjectSpecifier(want=aetypes.Type('prcs'), form="name", seld=processname, fr=None)