System events - results from browser window

Hi,
i’m trying to get the results of a browser window selection using “System events” within a particular application.
From my point of view i see no possibility than to use Ui scripting to access the “AXfilename” value. Maybe somebody has a better solution ?

tell application "System Events" to tell process "MyApp"
		set old_winds to number of windows
		--import files, dialog browser
		keystroke "i" using {option down, command down}
		repeat
			set all_winds to number of windows
			if all_winds is old_winds then
				exit repeat
			else
				try
					set nmes to lists of window 1
				end try
				delay 3
			end if
		end repeat
	end tell