New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Apps and Games Discussion of applications and games available for Mac OS X.

System preferences with AppleScript


Post Reply New Thread Subscribe

 
Thread Tools
skx0221

 
Member Since: Oct 10, 2011
Posts: 1
skx0221 is on a distinguished road

skx0221 is offline
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 Thanks
chscag

 
chscag's Avatar
 
Member Since: Jan 23, 2008
Location: Fort Worth, Texas
Posts: 39,076
chscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond repute
Mac Specs: 27" iMac i5, 3.2 GHz, iPad 3, iPhone 5c, 3 iPods, OS X Mavericks

chscag is offline
Moved here. Does not belong in "Running Windows........."
QUOTE Thanks

Post Reply New Thread Subscribe


« Utility Software | Keyboard not working »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
system preferences luisagos OS X - Operating System 3 09-28-2010 07:47 PM
Problems with my system preferences joesonaplane Switcher Hangout 2 10-30-2008 01:32 PM
System Preferences crash gixerboy78 OS X - Operating System 2 10-27-2008 11:46 PM
Help FAAST! System preferences crash when opening background and screensaver panel!! jafoca OS X - Operating System 4 07-17-2008 05:05 PM
DVD System Preferences Issue On MacBook Running 10.4.11 DakRoland OS X - Operating System 1 01-18-2008 03:03 AM

All times are GMT -4. The time now is 06:18 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?