I wanted to add a keyboard shortcut to teleport via the System Preferences.
teleport is a preference pane not an application so I can't select it.
I tried to assign my keyboard to "All applications" but it didn't work.
Edit:
I am more looking for assigning a keyboard shortcut to a Preference pane menu item than assigning a global shortcut to a preference pane.
For example, in teleport I want to assign a shortcut to the menu item "Deactivate teleport". One can access to this menu item by clicking on the teleport icon in the OS X menu bar.
Best Answer
You can create an Automator based service that opens the specific preference pane.
You can find the preference pane bundles in the
Library/PreferencePanes
set of folders:Preference panes are special bundles that when opened from the Finder, will launch System Preferences.app and automatically switch to their settings.
To assign this workflow as a keyboard shortcut, see this Tuts+ tutorial, How to Launch Any App with a Keyboard Shortcut.