[Last Update on: ]
color screen and Dark Mode on macOS Mojave

How to Enable Dark Mode with a keyboard shortcut or Touch Bar


Apple Mac Computer Operating system macOS Mojave Preview is super cool. Everyone is excited to use the new abilities of macOS 10.14. If we inspect the features of macOS Mojave, each and every function were the basic need of the users, and few functions are requested by the users, and yes there demand has been fulfilled with the new release.

One of the appeals to the Apple was to provide a dark mode in Mac. And of course, with macOS Mojave, you can enable dark mode in Mac. But if you are jerky and wants to switch from dark mode to light mode and from light mode to dark mode now and then, then today we are going to reveal a keyboard shortcut to enable dark mode in macOS Mojave. You don’t need to follow long procedures to

 

we are happy to help you, submit this Form, if your solution is not covered in this article.

 

Enable/disable dark mode in macOS Mojave on Your MacBook Pro/Air/iMac

Now we will create Automator Script

Step #1: Launch the “Automator” App using Finder or launch from the Desktop if you have already then.

Hint: You can Find Automator App through this path: open Finder from the dock → Now Click on Applications and then Click on Automator.App

Step #2: click on “New Document” and select “Contextual Workflow or Quick Action Workflow” and Click “Choose”.

Click on quick action workflow and click choose

Step #3: Now, select “No Input” from the WorkFlow input selection menu. In case if you have TouchBar MacBook, then you can replace the image which will be used for the button.

select no input then enter apple in serch bar click Run Applescript

Step #4: In the “Apple Search Bar”, enter “Apple”.

Step #5: Next, double-Click on “Run AppleScript”.

Step #6: Delete the following Script and Type the below command Script. I suggest you write this script by you into the text field on your Mac and avoid the Syntax error.

Enter new script to activate dark mode mac mojave with a keyboard shortcut

tell application “System Events”

tell appearance preferences

set dark mode to not dark mode

end tell

end tell

Run AppleScript in mac Mojave

If you want to verify that the script is working or not then click on Play icon and if dark mode or light mode switches then it is working perfectly.

Keep in Mind please enter the correct script, otherwise, you will get Syntax Error.

After Put new Script follows the Step 7:

Step #7: Go to “File”.

Step #8: Tap “Save

click on File menu choose save option and dark mode shortcut to save

Step #9. Save File as Dark mode Shortcut like given below.

Save quick actions workflow as dark mode shortcut to save

Some Mac User’s unable to create a shortcut and showing error: The action “Run AppleScript” encountered an error: “Not authorized to send Apple events to System Events.”, that may temporary issue because of a bug in Beta 2. Wait for next update, otherwise repeat the steps again. See Below video and Double check that you are on right path..

Video Tutorial:-

How to Create a keyboard shortcut to Enable Dark mode macOS Mojave (macOS 10.14 Edition)

Step #1: Click on “Apple” icon and open “System Preferences”.

New system preferences macos mojave

Step #2: Click “Keyboards”.

Step #3: Select the “Shortcuts” option.

Step #4: Open “Services” and double-click on “Dark Mode shortcut”.

Step #5.  Finally, Add a shortcut command like here (Command +B). In simple English, you must not use a key shortcut that is run for other function.

Dark Mode shortcut under services in keybaord system prefrences mac mojave

So now press Command+B to switch lighting mode to dark mode or vice-versa on macOS Mojave.

Now it’s time to use your skills, adjust the keyboard combination that you want to use to enable/disable Dark Mode.

Do not use the global shortcuts that are defined by Apple. So it is just like you have to experiment until you get a perfect match. Please make sure that it will not work when both the apps are open using the same shortcuts. For instance, if you have set command+B to quit iTunes and also to turn on and turn off Dark Mode and iTunes is currently active in such situation the shortcut key won’t work.

Create Touch Bar Shortcut to Activate Dark Mode on Touch Bar MacBook Pro

Step #1: Click “Apple” icon and tap “System Preferences”.

Step #2: Next, open “Extensions” appear between Bluetooth and Sharing then click “Touch Bar”.

Step #3: Check that “Dark Mode” workflow is turned on.

Activate Dark Mode on mac Mojave with TouchBar

Step #4: Now, move back to “Keyboard” settings.

Step #5: Click “Customize Control strip”. If you have device contains Touch Bar then only you will find this option.

click on Customize Control Strip on MacBook Pro Touchbar to activate dark mode Mojave

Step #6: Now, drag and drop “Dark Mode” workflow onto “Touch Bar”.

So now you can simply tap on Dark Mode to enable and disable from the touch bar.

Do you Like this article to activate Dark Mode with a keyboard shortcut or Touch bar? Please share it on your social network timeline and be helpful for other Apple Mac users!

> Trick to take and Edit a Screenshot on Mac Mojave

> Trick to Setup Dynamic Desktop in macOS Mojave

> Use Desktop Stacks in macOS Mojave

> Trick to use Continuity Camera iOS 12 and macOS Mojave

>Get macOS Mojave Wallpaper

>MacOS Mojave System Requirements

  • Is this article useful?
  • yesno

5 Replies to “How to Enable Dark Mode with a keyboard shortcut or Touch Bar”

  1. All I get when I try to use this keyboard shortcut is the following error:
    “`The action “Run AppleScript” encountered an error: “Not authorized to send Apple events to System Events.”“`

    Help!

    1. double check your script, don’t copy from the webpage. try correct text that used here with an Example.

      if possible share your screen via Email or Describe more, current MacOS Version, Mac Model and more..

      Thank u! i glad to help you!

      1. I appears to have stopped working in the newest public beta.

  2. Steve Pearce says:

    This worked on Mojave PB1 but fails on PB2 with:

    The action “Run AppleScript” encountered an error: “Not authorized to send Apple events to System Events.”

  3. I’ve also gotten this error: The action “Run AppleScript” encountered an error: “Not authorized to send Apple events to System Events.” It was working fine until the latest beta update. Maybe Apple killed it because they didn’t like users going around their beta functionality.

Leave a Reply

Your email address will not be published. Required fields are marked *