![]() Set AppleScript's text item delimiters to On getUI(UIObjet, myLevel) - get recursively the list of UI elements ![]() Tell application "System Events" to tell process ActifProcess to set myWindow to front windowÄisplay dialog "Result is in clipboard. recursive loop to list all elements of active window Tell application ActifProcess to activate - set active the last actived application Set ActifProcess to secondFrontmost as text Set frontmost of frontmostProcess to true Set secondFrontmost to name of first process where it is frontmost Repeat while (frontmostProcess is frontmost) Set frontmostProcess to first process where it is frontmost ![]() Here is a small example of such script: - return lis of UI elements of active application and paste result in Excel Just write a script with instruction get UI elements. it is a bit longer sometime, but it always works. To get the button and group numbers, you have 2 ways: use the utility aplication provided by Apple in the developper toolkit "Accessibility Inspector" or use small scripts to find the number yourselves. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |