If application 'System Preferences' is running then
Here are sample scripts for controlling the System Preference application:Ī script for quiting the System Preference application: However, occasionally you may wish to launch the System Preferences application and switch to a specific pane or tab for user review or interaction. Scripting of the preferences is done directly by using the preferences suites included in the System Events application dictionary. It is not necessary to script the System Preferences application to get or set the parameters for scriptable system preferences. Mac OS X Leopard introduces a number of newly scriptable system preference panes, including: Accounts, Appearance, CD & DVD, Desktop, Dock, Expose and Spaces, Network, and Security.