Results 1 to 2 of 2
  1. #1


    Member Since
    Oct 10, 2011
    Posts
    1
    System preferences with AppleScript
    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

  2. #2

    chscag's Avatar
    Member Since
    Jan 23, 2008
    Location
    Keller, Texas
    Posts
    49,386
    Specs:
    Late 2013 27" iMac, iPad 3, iPhone 6s+, iPhone 6+, 3 iPods, Sierra
    Moved here. Does not belong in "Running Windows........."

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. System Preferences>Preferences Error
    By AndyBorzi in forum OS X - Operating System
    Replies: 12
    Last Post: 06-14-2016, 05:11 AM
  2. No Sharing Preferences in System Preferences 10.9.4 MBP
    By exile in forum OS X - Operating System
    Replies: 2
    Last Post: 09-22-2014, 10:22 PM
  3. System Preferences
    By Stuartaiken in forum OS X - Operating System
    Replies: 5
    Last Post: 03-03-2010, 08:41 AM
  4. system preferences
    By shahvikram123 in forum OS X - Operating System
    Replies: 3
    Last Post: 03-09-2007, 01:17 PM
  5. System preferences
    By TenderSurrender in forum OS X - Operating System
    Replies: 3
    Last Post: 10-10-2006, 03:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •