#!/usr/bin/env python2.5

import atspi
import time

desktop = atspi.registry.getDesktop(0)

while True:
	for i in xrange(desktop.getChildCount()):
		app = desktop.getChildAtIndex(i)
		if app:
			x = app.getRoleName()
			x = app.getName()
	app = None
	time.sleep(.1)
