No internet connection
  1. Home
  2. How to

How to automate macOS Preferences

By Christopher Barnett @Christopher_Barnett
    2020-10-10 22:37:26.764Z

    What is the equivilent of this in soundflow ?

    tell application "System Preferences"
    reveal anchor "keyboardTab" of pane "com.apple.preference.keyboard"
    end tell
    tell application "System Events" to tell process "System Preferences"
    click checkbox 1 of tab group 1 of window 1
    end tell
    quit application "System Preferences"

    • 3 replies
    1. Hi Chris,

      For the 2nd part:
      The easiest way to get this working in SoundFlow is by using UI automation.

      You would create a new macro, use the Click UI Element action and use the picker to point at the checkbox (if what you want is for it to just toggle).

      For the 1st part, you could use an "Execute System Command" with this in the Command Line:

      open /System/Library/PreferencePanes/Keyboard.prefPane
      
      1. So you'd probably end up with something like this:

        1. If that was the specific checkbox you were looking for