def processinfo(processname):
 p = _process()
 if (processname == 'Finder'):
  p.partition = None
  p.used = None
 else:
  p.partition = _processproperty(processname, 'appt')
  p.used = _processproperty(processname, 'pusd')
 p.visible = _processproperty(processname, 'pvis')
 p.frontmost = _processproperty(processname, 'pisf')
 p.file = _processproperty(processname, 'file')
 p.filetype = _processproperty(processname, 'asty')
 p.creatortype = _processproperty(processname, 'fcrt')
 p.accepthighlevel = _processproperty(processname, 'revt')
 p.hasscripting = _processproperty(processname, 'hscr')
 return p

def processinfo ( processname ) : p = _process ( ) if ( processname == 'Finder' ) : p . partition = None p . used = None else : p . partition = _processproperty ( processname , 'appt' ) p . used = _processproperty ( processname , 'pusd' ) p . visible = _processproperty ( processname , 'pvis' ) p . frontmost = _processproperty ( processname , 'pisf' ) p . file = _processproperty ( processname , 'file' ) p . filetype = _processproperty ( processname , 'asty' ) p . creatortype = _processproperty ( processname , 'fcrt' ) p . accepthighlevel = _processproperty ( processname , 'revt' ) p . hasscripting = _processproperty ( processname , 'hscr' ) return p
return an object with all process properties as attributes for processname .