Modifying keyboard shortcuts ...

In the keyboard's System Prefs, I created new shortcuts applying to all apps (Hide others => control + option + H). I also selected the check box to make them available.


Why does the new shortcut not being applied to many apps ?


I first thought that I had to manually assign them to Apple's app, but the problem seems to be generalized.

iMac Line (2012 and Later)

Posted on Nov 21, 2021 7:16 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 22, 2021 7:03 AM

Robert Lesperance wrote:

I can create them by app individually, but the global app setup does not work.

My guess is each app has its own Application menu. However, that doesn't seem to affect the Services menu.


Not as fast, but create an Automator QuickAction or a Shortcut that runs this AppleScript:

tell application "System Events"
	repeat with aProcess in processes
		if aProcess is not frontmost then
			set visible of aProcess to false
		end if
	end repeat
end tell

Set your shortcut to run that QuickAction or Shortcut.


In Shortcuts, you can Hide All apps, but I haven't found a way to get the current app to set as the exception.

You can also make a shortcut, but I think it is slower than the AppleScript:

7 replies
Question marked as Top-ranking reply

Nov 22, 2021 7:03 AM in response to Robert Lesperance

Robert Lesperance wrote:

I can create them by app individually, but the global app setup does not work.

My guess is each app has its own Application menu. However, that doesn't seem to affect the Services menu.


Not as fast, but create an Automator QuickAction or a Shortcut that runs this AppleScript:

tell application "System Events"
	repeat with aProcess in processes
		if aProcess is not frontmost then
			set visible of aProcess to false
		end if
	end repeat
end tell

Set your shortcut to run that QuickAction or Shortcut.


In Shortcuts, you can Hide All apps, but I haven't found a way to get the current app to set as the exception.

You can also make a shortcut, but I think it is slower than the AppleScript:

Nov 23, 2021 6:18 AM in response to Robert Lesperance

I just realized that my problem is caused by the fact that I want to use a different keyboard set for the «Hide others» menu item.


Now that it's impossible to change it by a simple «All apps» keyboard shortcut, I will simply use the preset «command+ option + H» shortcut, and that will do it.


Why do complicated when I can do it simply.

Nov 22, 2021 7:40 PM in response to Barney-15E

Hello Barney,


In the past, I used the «Single Application mode» offered in the OnyX utility. That option seems to be mow conflicting with OS X's window native features. Maybe not, but that's my conclusion using OnyX.


I then decided to go another route and to create a keyboard shortcut in the System Preferences in order to manually Hide other apps when needed instead of always as with the «Single Application mode» in OnyX.


Since it's not possible to set a universal Hide other menu item, I will have to create them individually for each app I use more often. That should do it.


Thanks for offering a new route. I will have a look at your solution.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Modifying keyboard shortcuts ...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.