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.

  • You can switch to a specific Space. If you pin apps to Spaces, that's a fast method of switching.
    – Tetsujin
    Jul 15, 2018 at 6: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 3, 2018 at 7:10
  • 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 3, 2022 at 6:52

2 Answers 2


Have you tried using Snap from the App Store?

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.

  • 1
    Great, thank you, Arman, it's a nice tool and it does what I wanted. Jul 17, 2020 at 16:15
  • Awesome! No worries. 👍 Jul 18, 2020 at 23:23

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
  • Small note: not to forget to grant permissions to this app (Security & Privacy -> Accessibility -> Check Apptivate). Sep 11, 2022 at 9:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.