Results 1 to 2 of 2
  1. #1


    Member Since
    Oct 11, 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
    Fort Worth, Texas
    Posts
    47,107
    Specs:
    27" iMac i5, 3.2 GHz, iPad 3, iPhone 5c, iPhone 6+, 3 iPods, El Capitan
    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. 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, 11:22 PM
  2. System Preferences>Preferences Error
    By AndyBorzi in forum OS X - Operating System
    Replies: 10
    Last Post: 01-23-2012, 05:03 PM
  3. System Preferences
    By Stuartaiken in forum OS X - Operating System
    Replies: 5
    Last Post: 03-03-2010, 09:41 AM
  4. system preferences
    By shahvikram123 in forum OS X - Operating System
    Replies: 3
    Last Post: 03-09-2007, 02:17 PM
  5. System preferences
    By TenderSurrender in forum OS X - Operating System
    Replies: 3
    Last Post: 10-10-2006, 04: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
  •