Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard Shortcut to Focus on an App in Mac OS [closed]

I have about 5-6 applications that I have open on my Mac which I constantly switch between all day long. I currently use Command-Tab to do most of my switching but Ideally I'd like to set my own shortcuts like Control-Command-[0-9] to toggle between my most used apps as it would be much faster for me. I looked at the keyboard shortcuts menu in the System Preferences but I couldn't find a way to make it simply focus on a particular window. Any input on how I could acheive this?

Thanks! Dan

like image 445
Dan Avatar asked Jan 24 '11 23:01

Dan


People also ask

What is the shortcut key of close app?

To quickly force quit on Windows , use the keyboard shortcut Alt + F4. Make sure the app or program window is open when you click Alt + F4.

How do you turn on focus on a Mac?

On your Mac, choose Apple menu > System Preferences, then click Notifications & Focus . Click Focus, then select a Focus. In the Turn On Automatically list, click the Add button , then choose whether to schedule the Focus based on time, location, or app.

How do you close a window with the keyboard on a Mac?

Command-W: Close the front window. To close all windows of the app, press Option-Command-W.


3 Answers

You can use AppleScript and define some custom keyboard shortcuts to call the correct script.

For example:

tell application 'Finder' to activate

Set that to Control+Command+0

tell application 'Safari' to activate

Set that to Control+Command+1

... and so on

I know that System Preferences can define custom keyboard shortcuts, but I'm if they can run scripts. Something like Quicksilver or other 'productivity' addon software definitely can.

like image 59
Coxy Avatar answered Oct 08 '22 03:10

Coxy


Alfred can do this as well.. among several other switching, searching tasks.

like image 44
fifigyuri Avatar answered Oct 08 '22 03:10

fifigyuri


Use Quicksilver or LaunchBar

like image 1
Yuji Avatar answered Oct 08 '22 03:10

Yuji