Skip to content

Instantly share code, notes, and snippets.

@kalcher
Created August 6, 2011 22:26
Show Gist options
  • Save kalcher/1129814 to your computer and use it in GitHub Desktop.
Save kalcher/1129814 to your computer and use it in GitHub Desktop.
Apple Script for selecting keyboard shortcuts in the system preferences.
tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preference.keyboard"
reveal anchor "shortcutsTab" of current pane
get the name of every anchor of current pane
end tell
tell application "System Events"
tell application process "System Preferences"
tell tab group 1 of window 1
tell splitter group 1
select row 6 of table 1 of scroll area 1
select row 16 of outline 1 of scroll area 2
end tell
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment