Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
2 answers
809 views

Single-button shortcut for "Do not Disturb"

Is there a way I can bind a single key on my keyboard to toggle "Do not Disturb"? It would be more convenient that opening up the notification center and moving that awkward slider. I do think that ...
Daniel's user avatar
  • 653
1 vote
2 answers
2k views

What key code maps to external USB brightness up/down keys?

I am writing a script and I need to figure out current key codes for brightness up and down with an external keyboard. I know the standard for a MacBook is 107 and 113, though as soon as I connect a ...
andreasg's user avatar
1 vote
1 answer
55 views

MacOS Music script does not work triggered inside app

For years, I've been using a really simple AppleScript to reset Music's AirPlay device back to my computer. I trigger it using a keyboard shortcut Command + E and the script doesn’t run. Same if I use ...
nigel's user avatar
  • 13
1 vote
0 answers
66 views

Use Single Shortcut Key to Close Windows

Some windows can be closed with ⌘+w while others require the Esc key. How do you create a single key shortcut (maybe with caps lock?) that can close both types? A built-in solution in Mojave and ...
nino's user avatar
  • 11
0 votes
2 answers
119 views

Can I accomplish similar functionality to Windows Auto Hot Key (AHK) on macOS Sonoma?

I switched recently to an Macbook Pro with an M3 Pro chip after using Windows for a lifetime. I am trying to make a a shortcut which can trigger many different actions and in my case all the actions ...
ibo's user avatar
  • 1