

SIDENOTE: My reason for using the the do shell script "killall 'System Preferences'" command rather than tell application "System Preferences" to quit is. Repeat until exists of checkbox chosenAppearanceMode of window "General" of application process "System Preferences"Ĭlick checkbox chosenAppearanceMode of window "General" of application process "System Preferences"Ĭlick checkbox chosenAccentColor of window "General" of application process "System Preferences"Ĭlick menu item chosenHighlightColor of menu 1 of pop up button 1 of window "General" of application process "System Preferences" Tell application "System Preferences" to reveal anchor "Main" of pane id "" Repeat until application "System Preferences" is not running If application "System Preferences" is running then do shell script "killall 'System Preferences'" If chosenHighlightColor is "false" then return "Please Choose Your Highlight Color" OK button name ¬ With title "Please Choose Your Highlight Color" with prompt ¬ Set chosenHighlightColor to (choose from list highlightColors ¬ If chosenAccentColor is "false" then return "Please Choose Your Accent Color" OK button name ¬ With title "Please Choose Your Accent Color" with prompt ¬ Set chosenAccentColor to (choose from list accentColors ¬

If chosenAppearanceMode is "false" then return "OK" cancel button name "CANCEL") as string "Please Choose Your Appearance Mode" OK button name ¬ With title "Please Choose Your Appearance Mode" with prompt ¬ Set chosenAppearanceMode to (choose from list appearanceMode ¬

When this new app is launched, it allows for choosing your different color modes. Taking it one step further, save this following AppleScript code as an application. Tell application "System Preferences" to quit Repeat until exists of checkbox "Dark" of window "General" of application process "System Preferences"Ĭlick checkbox "Dark" of window "General" of application process "System Preferences"Ĭlick checkbox "Red" of window "General" of application process "System Preferences"Ĭlick pop up button 1 of window "General" of application process "System Preferences"Ĭlick menu item "Red" of menu 1 of pop up button 1 of window "General" of application process "System Preferences" Maybe this applescript code will help a bit tell application "System Preferences"
