I'm trying to write an applescript to get me to a specific section of the system preferences – Keyboard > Shortcuts > Services and hopefully to a specific service as well. I've gotten a part of the way with this:
tell application "System Preferences"
activate
reveal anchor "shortcutsTab" of pane id "com.apple.preference.keyboard"
end tell
This gets me to the Shortcuts portion of the Keyboard prefs pane but I'd like to drill down further into the correct selection. Is there a way to select a specific service in this prefs pane? Ultimately I'm wanting to direct the end user to change a keyboard shortcut for a service previously installed.
Best Answer
Here's a script I just wrote that'll do it. This will get you to the shortcuts tab of the Keyboard preference pane, and select a row from the left and right columns:
Here's the version you can use which identifies the rows by name. Sort of hacky, but it should work well.