Is it possible to get OS X (Leopard or later) to notify you of dialog box creation?
I want to be able to watch for dialog boxes being created by a particular app and then do something depending on the dialog box that is displayed. The “do something” will likely involve Applescript GUI scripting to click on buttons etc.
I have been told that Applescript does not provide notifications/events for window creation. Is this possible with Objective-C or something else?
Thanks.
The Accessibility APIs can be used to do this sort of thing. There are a lot of APIs and the documentation can be a bit daunting, so a third-party developer has a framework called PFEventTaps that purportedly simplifies writing “assistive applications”.
Have fun!