


Scripted actions are performed by addressing the System Events application which has a special script suite for communicating with the GUI Scripting architecture.Ī sub-routine for checking to see if GUI Scripting support is enabled. Once the accessibility frameworks have been activated, AppleScript can be used to query and control the user interface of most applications. They are enabled by clicking the checkbox labeled " Enable access for assistive devices" in the Universal Access System Preference pane: The GUI Scripting architecture is based upon the Mac OS X Accessibility Frameworks that provide alternative methods of querying and controlling the interfaces of the OS and applications.īy default, the Accessibility Frameworks are disabled. By addressing the System Events application, AppleScript scripts can select menu items, push buttons, enter text into text fields, and generally control the interfaces of many applications. Graphic User interface (GUI) control is performed by writing scripts incorporating terms and commands from the Processes Suite in the System Events application's scripting dictionary. Mac OS X includes built-in support for the control of the computer's graphic user interface via AppleScript.

While creating scripting workflows, you may occasionally need to control applications that either do not have AppleScript support or are only partially scriptable.
