I’m sure this is discussed somewhere in the forum but I’m not finding it.
I would like to automate opening the system settings to a specific panel. For example “Privacy and Security → Bluetooth”
and “Bluetooth”.
I’m not trying to automate changing these, just that when it’s needed I want the user to be able to click a button that takes them right where they need to go.
Any tips?
Christian documented a bunch in the MBS blog:
MBS Xojo Blog - MacOS System Preference Links
1 Like
Thanks Tim!
Norman Palardy texted me some great links too:
macOS_SytemPrefs.md
# macOS 10.15 System Preference Panes
Below are a list of System Preference pane URLs and paths that can be accessed with scripting to assist users with enabling macOS security settings without having to walk them through launching System Preferences, finding panes, and scrolling to settings. Not all panes have an accessible anchor and some are OS specific.
To find the Pane ID of a specific pane, open the System Preferences app and select the desired Preference Pane. With the pane selected, open the ScriptEditor.app and run the following script to copy the current Pane ID to your clipboard and display any available anchors:
```bash
tell application "System Preferences"
set CurrentPane to the id of the current pane
set the clipboard to CurrentPane
This file has been truncated. show original
# How to open every macOS System Preferences Pane
Here is a complete list of System Preferences Panes (as of macOS Monterey 12.2.1) and how to open them with a bash command. Not all panes support a URLScheme to open, but for those that do not you can use Applescript.
The macOS Ventura version of this list can be found [here](https://github.com/bvanpeski/SystemPreferences/blob/main/macos_preferencepanes-Ventura.md).
### Table of Contents
**Preference Panes**
* [AppleID](#apple-id-comapplepreferencesappleidprefpane) | [Family Sharing](#family-sharing-comapplepreferencesfamilysharingprefpane)
* [General](#general-comapplepreferencegeneral) | [Desktop & Screen Saver](#desktop--screensaver-comapplepreferencedesktopscreeneffect) | [Dock & Menu Bar](#dock--menu-bar-comapplepreferencedock) | [Mission Control](#mission-control-comapplepreferenceexpose) | [Siri](#siri-comapplepreferencespeech) | [Spotlight](#spotlight-comapplepreferencespotlight) | [Language & Region](#language--region-comapplelocalization) | [Notifications & Focus](#notifications--focus-comapplepreferencenotifications)
* [Internet Accounts](#internet-accounts-comapplepreferencesinternetaccounts) | [Passwords](#passwords-comapplepasswords) | [Wallet & Apply Pay](#wallet--apple-pay-comapplepreferenceswallet) | [Users & Groups](#users--groups-comapplepreferencesusers) | [Accessibility](#accessibility-comapplepreferenceuniversalaccess) | [Screen Time](#screen-time-comapplepreferencescreentime) | [Extensions](#extensions-comapplepreferencesextensions) | [Security & Privacy](#security--privacy-comapplepreferencesecurity)
* [Software Update](#software-update-comapplepreferencessoftwareupdate) | [Network](#network-comapplepreferencenetwork) | [Bluetooth](#bluetooth-comapplepreferencesbluetooth) | [Sound](#sound-comapplepreferencesound) | [Touch ID](#touch-id-comapplepreferencespassword) | [Keyboard](#keyboard-comapplepreferencekeyboard) | [Trackpad](#trackpad-comapplepreferencetrackpad) | [Mouse](#mouse-comapplepreferencemouse)
* [Displays](#displays-comapplepreferencedisplays) | [Printers & Scanners](#printers--scanners-comapplepreferenceprintfax) | [Battery](#battery-comapplepreferencebattery) | [Energy Saver](#energy-saver-comapplepreferencesenergysaverprefpane) | [Date & Time](#date--time-comapplepreferencedatetime) | [Sharing](#sharing-comapplepreferencessharing) | [Time Machine](#time-machine-comappleprefsbackup) | [Startup Disk](#startup-disk-comapplepreferencestartupdisk) | [Profiles](#profiles-comapplepreferencesconfigurationprofiles)
**How To**
* [How to find panes yourself](#finding-pane-ids-and-anchors)
* [Troubleshooting](#troubleshooting)
This file has been truncated. show original
Does anybody miss AppleScript (haha)