Hi,
I'm trying to enable mouse keys with Applescript.
Here's what I have so far:
tell application "System Preferences"
*activate
*set current pane to pane id "com.apple.preference.universalaccess"
end tell
tell application "System Events"
*tell process "System Preferences"
**tell tab group "Mouse" of window "Universal Access"
** tell radio group "Mouse Keys:"
** *if radio button "Off" is boolean then
** * click radio button "On"
** *end if
** end tell
**end tell
*end tell
end tell
tell application "System Preferences"
*quit
end tell
I keep getting the error "Can't get tab group "Mouse" of window "Universal Access" of process "System Preferences".
What did I di wrong?
I'm sorry but I'm new to AppleScript
I'm trying to enable mouse keys with Applescript.
Here's what I have so far:
tell application "System Preferences"
*activate
*set current pane to pane id "com.apple.preference.universalaccess"
end tell
tell application "System Events"
*tell process "System Preferences"
**tell tab group "Mouse" of window "Universal Access"
** tell radio group "Mouse Keys:"
** *if radio button "Off" is boolean then
** * click radio button "On"
** *end if
** end tell
**end tell
*end tell
end tell
tell application "System Preferences"
*quit
end tell
I keep getting the error "Can't get tab group "Mouse" of window "Universal Access" of process "System Preferences".
What did I di wrong?
I'm sorry but I'm new to AppleScript