Accessibility list & Cgwindow list

Hi all,

Two questions.

Is there a way to test if an app is in the accessibility list to control the UI?

Also, any code available to return the bounds of the preferences window so I can position my window in relation to its position? I’d like to do something similar to Shane’s accessibility applet, but with a startup screen on first launch.

Thanks!

Mac.jedi

Mieux vaut tard que jamais… :wink:

set checkAccessApp to do shell script "sqlite3 /Library/'Application Support'/com.apple.TCC/Tcc.db 'SELECT * FROM access'" with administrator privileges

if checkAccessApp does not contain "com.company.MyApp|0|1|1|" then
	display alert "No Access"
else
	display alert "Access OK"
end if

Of course modify “com.company.MyApp”. :stuck_out_tongue: