
(You can also launch it through Spotlight without Xcode, it’s in /Applications/Xcode.app/Contents/Applications/) Menu bar: Xcode > Open Developer Tool > Accessibility Inspector. The Accessibility Inspector is also contained in Xcode, in case you have it already installed. At $55, it is not cheap, but could save you many hours of development time. If you need to do a lot of UI scripting, or work with a very complicated app, then you may want to consider a professional tool, like UI Browser.
#UI BROWSER APP HOW TO#
How to use: A Strategy for UI Scripting in AppleScript using UIElementInspector.Apple Web Page: UIElementInspector - Mac Developer Library.

Alternate Name: Accessibility Inspector.Here is a free tool, provided by Apple, that will help you identify the UI elements you need to script: You may then need to resort to UI scripting.

Sometimes an app, or even the OS X system itself, does NOT provide a direct scripting element that allows you to achieve your objective.

