Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

glycon

macrumors newbie
Original poster
Sep 24, 2005
29
0
I mouse and type with my head through macOS Sierra Dwell Control.

What am I doing wrong that the following AppleScript does not bring up the Accessibilty Options panel as literally pressing Option-Command-F5 does?



Code:
on run

tell application "System Events"

key code 96 using {option down, command down}

end tell

end run
 
Last edited:
Not sure, but you can get into them in a different way (on El Capitan anyway):

Code:
tell application "System Preferences"
   activate
   set current pane to pane "com.apple.preference.universalaccess"
end tell
 
That's good but I need this:

2ccxtue.png


Opt-Cmd-F5 is the default shortcut.
 
Last edited:
Mmmm... unfortunately I'm still on El Capitan so I don't have that System Pref. You'd need to see if you can get hold of the panel's ID (which is what I did in my earlier example). The script below should give you a list of your System Preferences' IDs. If you see something that looks like it might be the one you need, substitute it into my earlier example.

Code:
tell application "System Preferences"
   activate
   set thePanes to (id of every pane)
end tell
choose from list thePanes
 
Thanks for trying to help me out. The panel seems to spawn from Assistive Control.app which appears briefly in Activity Monitor when I press the hotkey but I haven't located it yet to point Script Editor to it.
 
upon a reinstall in place of 10.12.2 that fixed a separate graphics issue now my script works as expected
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.