When I add the system preferences to the dock and click it, it opens in the common view.
How can I open a specific pane at once from the dock?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
/System/Library/PreferencePaneson Lion for the system preference panes or
~/Library/PreferencePanes/for user-added ones.
Clicking the new icon will open System Preferences directly to that preference pane.
If it's a particular pane you want then you can use AppleScript to do this. For example, start the AppleScript Editor and type the following:
tell application "System Preferences" activate set current pane to pane "com.apple.preference.startupdisk" end tell
This will open the Startup Disk preference pane
com.apple.preference.startupdisk, but the other panes follow the same naming convention, e.g.
You can now save this an application:
Then drag the .app file you created to the Dock. When you double-click it, it will open the required preference pane.
If System Preferences is running, the Dock menu has a list of all available preference panes. If it's not running, they aren't in the menu because apps on OS X can't keep stuff in the Dock when they're not running.
For easy access to a specific preference pane, use Spotlight or a third-party launcher.
The accepted answer is good but it doesn't behave like a native app's icon would on the Dock.
The AppleScript answer is good but it relies on knowing the magic string for
com.apple.preference.* and also relies on opening the System Preferences app first (and loading info about all the panes) and then opening the desired pane, rather than just opening the desired pane (and not opening the main app first).
I combined them into one that resolves all three issues. (on macOS Monterey, but it should apply to any version of macOS people are reasonably running today)
/System/Library/PreferencePanesin Finder (we'll use
StartupDisk.prefPanefor this example)
Run it and it will take you directly to that preference pane without the initial step of opening System Preferences.