Home > Apple > Mac

Create Keyboard Shortcut for Sleep for Mac having Touch ID

In this guide, we will show you the steps to create a keyboard shortcut for Sleep for Mac having a touch ID. Earlier, we used to have the Eject key in place of the touch ID. Using it, along with the Option + Command keys was the go-to shortcut key combination for the users to put their Mac to sleep. However, now that it is no longer there, users have to use the traditional way of getting this job done- from the Apple drop-down menu.

So can’t we just simply create a custom shortcut from the System Settings? Well, you could but many users have said that they can’t make the shortcut work if they choose “All Applications”, it only tends to work if they choose a particular app or two. So what is the remedy for this problem? Well, instead of using the Keyboard Shortcut settings, you’ll have to take the help of Automator to get this job done. And in this guide, we will help you with just that. Follow along.

Create a Keyboard Shortcut for Sleep for Mac having Touch ID

  1. Head over to Launchpad > Others and launch Automator.
  2. Then select Quick Action from the list and hit Choose.Create Keyboard Shortcut for Sleep for Mac having Touch ID
  3. Now change “Workflow receives” to “no input” in “any application”.
  4. Then select Utilities from the left and drag Run Apple Scrip to the right.Create Keyboard Shortcut for Sleep for Mac having Touch ID
  5. Now replace (* Your script goes here *) with the below script:
    tell application "Finder" to sleep
  6. Try to run this application via the button at the top right and check out the result.Create Keyboard Shortcut for Sleep for Mac having Touch ID
  7. Your Mac should now go to Sleep. If that happens, then it means the script is working well and good.
  8. So wake up your Mac and save the script via Automator > File > Save. Give it a name and hit Save.Create Keyboard Shortcut for Sleep for Mac having Touch ID
  9. Now go to System Settings > Keyboard > Keyboard Shortcuts > Services > General.
  10. Your script should be present there. Click on the None keyword next to it and assign the desired shortcut.Create Keyboard Shortcut for Sleep for Mac having Touch ID

That’s it. These were the steps to create a keyboard shortcut for Sleep for Mac having a touch ID. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.


Share: