Thanks for the help. I'm considering using System Events for test automation. To the extent where the app under test is script-able, that would certainly be preferable, but unfortunately, there are significant areas not exposed via the app's dictionary. Most other test automation for the mac relies on screen capture (like Siluli or TestPlant) which is very fragile and doesn't scale. System Events seemed like a potentially better option, but I was not enthusiastic about using AppleScript. appscript seemed like a good way to go.
Given your feedback below, is appscript+System Events a reasonable approach for test automation? FYI, there is Mac automation tool that doesn't rely on screen capture - called Squish. I've just started evaluating it. thanks, -Demian ---------- Original Message ---------- From: has <hengist.p...@virgin.net> To: pythonmac-sig@python.org Subject: Re: [Pythonmac-SIG] appscript: Newbie trying to script using System Events Date: Sat, 05 Feb 2011 15:27:43 +0000 dgodon wrote: > Can anyone share some good examples of scripting System Events? For > instance, to select sub-menu options of an app, or to open/close app > windows, or dock panels in Photoshop. GUI Scripting's a last resort where applications don't provide a suitable scripting interface of their own. It's brittle and fiddly, and finding your way around the structure of and application's is a chore. Best (paid) solution would be to use UI Browser (http://pfiddlesoft.com/uibrowser/) to generate AppleScript commands and convert them to Python via ASTranslate. Or you could use appscript's interactive help system to browse objects in SE; see the appscript manual for more info. HTH has _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG ____________________________________________________________ Job Scams (EXPOSED) We investigated work at home jobs and what we found may shock you... http://thirdpartyoffers.juno.com/TGL3131/4d4d93dec7e3d2245e7st01vuc _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG