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/PreferencePanes
on Lion for the system preference panes or /Library/PreferencePanes
or ~/Library/PreferencePanes/
for user-added ones.Clicking the new icon will open System Preferences directly to that preference pane.
/System/Library/PreferencePanes
for system panes and /Library/PreferencePanes
or ~/Library/PreferencePanes
for user ones.
Apr 25, 2012 at 22:29
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. com.apple.preference.dock
etc.
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.
I see this is an old post, but at OS X.7 (Lion) and X.8 (Mountain Lion), at least, show the full list by just clicking and HOLDING on the System Preferences icon in the Dock.
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/PreferencePanes
in Finder (we'll use StartupDisk.prefPane
for this example)open /System/Library/PreferencePanes/StartupDisk.prefPane
~/Applications
)StartupDisk.prefPane
file)Run it and it will take you directly to that preference pane without the initial step of opening System Preferences.