Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
System preferences with AppleScript
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="skx0221" data-source="post: 1307902" data-attributes="member: 217741"><p>Hi,</p><p></p><p>I'm trying to enable mouse keys with Applescript.</p><p></p><p>Here's what I have so far:</p><p></p><p></p><p>tell application "System Preferences"</p><p>*activate</p><p>*set current pane to pane id "com.apple.preference.universalaccess"</p><p>end tell</p><p></p><p>tell application "System Events"</p><p>*tell process "System Preferences"</p><p>**tell tab group "Mouse" of window "Universal Access"</p><p>** tell radio group "Mouse Keys:"</p><p>** *if radio button "Off" is boolean then</p><p>** * click radio button "On"</p><p>** *end if</p><p>** end tell</p><p>**end tell</p><p>*end tell</p><p>end tell</p><p></p><p>tell application "System Preferences"</p><p>*quit</p><p>end tell</p><p></p><p></p><p>I keep getting the error "Can't get tab group "Mouse" of window "Universal Access" of process "System Preferences".</p><p></p><p>What did I di wrong?</p><p></p><p>I'm sorry but I'm new to AppleScript</p></blockquote><p></p>
[QUOTE="skx0221, post: 1307902, member: 217741"] 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 [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
System preferences with AppleScript
Top