17

In Windows, I can switch to an open app, or an app that has a shortcut pinned to the taskbar, using the shortcut Win+{num}, where num is the index of the app in the taskbar.

For example, if I've pinned Google Chrome as the first item, I can always launch Chrome or switch to it by pressing Win+1.

Is there any similar shortcut available for Mac OS X? I'd like to switch in the same way to the n-th app in the Dock.

robinCTS
  • 4,327
  • 4
  • 20
  • 29
  • You can switch to a specific Space. If you pin apps to Spaces, that's a fast method of switching. – Tetsujin Jul 15 '18 at 06:39
  • 1
    You can create this functionality in macOS, since one can create keyboard shortcuts that are attached to scripts. However, since you want them numbered, it would mean having to create, say, 10 individual scripts and shortcuts: one for ⟨⌘⟩+⟨1⟩, another for ⟨⌘⟩+⟨2⟩, and so on... – CJK Aug 03 '18 at 07:10
  • [Switching to spaces with keyboard](https://apple.stackexchange.com/questions/213549/keyboard-shortcuts-for-switching-spaces) and [assigning apps to spaces](https://support.apple.com/en-ca/guide/mac-help/work-in-multiple-spaces-mh14112/mac). – idbrii Dec 12 '18 at 05:40
  • 1
    @idbrii That's for multiple spaces. I want to use the same space. I have two screens and I want to switch to another app on the other screen without accidentally typing terminal commands into a chat app. – SOFe Jun 03 '22 at 06:52

2 Answers2

8

Have you tried using Snap from the App Store?

FEATURES:
Snap automatically assigns keyboard shortcuts to apps pinned in your dock using a modifier key (command, option, control, or shift) and the number keys. For example, command+1 opens the 1st app in your dock, command+2 the 2nd, etc. Rearrange or add new apps to the dock and the shortcuts will automatically reset.

3

I've used Apptivate (free and OS X 10.9+) to accomplish this for a few years. It allows you to assign apps to arbitrary keyboard shortcuts, so I assign them in the same order they appear in my dock: Vim to Option+1, Finder to Option+2, Terminal to Option+3...

Apptivate: create global hotkeys for your files and applications.

  • Launch, activate, hide and quick peek applications
  • Execute scripts
  • Run Automator workflows
  • Instantly access files and folders
idbrii
  • 1,129
  • 1
  • 8
  • 20
  • 1
    Small note: not to forget to grant permissions to this app (Security & Privacy -> Accessibility -> Check Apptivate). – Alex Barkun Sep 11 '22 at 09:44
  • Additionally, it is worth trying to check "Allow overriding system shortcuts" in Apptivate Preferences if it does not accept a desired shortcut. – kaorukobo May 05 '23 at 11:02