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?
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?
/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.
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.
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.
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.
/System/Library/PreferencePanes
for system panes and/Library/PreferencePanes
or~/Library/PreferencePanes
for user ones. – binarybob Apr 25 '12 at 22:29PreferencePanes
for a lot longer than Lion. – Kevin Reid Apr 26 '12 at 12:35