Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Question

I want to start an application, e.g. the Google Chrome browser, via a keyboard shortcut. How do I assign a keyboard shortcut to an application?

Additional information

I know there are other ways to launch an application such as

  • opening Spotlight via Cmd+Space and typing "Chrome" followed by the enter key or
  • installing Quicksilver and use it as the application launcher.

Both are cool ways, but I want it even faster -- just a keyboard shortcut, accessible no matter what application has currently the focus.

What's the easiest way to accomplish that? I tried to fiddle in Preferences > Keyboard & Mouse under Keyboard Shortcuts, but failed.

I found a couple of resources on the web suggesting to create an Apple Script. But I don't know how that would work and I can't imagine that it would be so complicated to achieve such a simple goal.

share|improve this question

3 Answers 3

up vote 5 down vote accepted

If you do have QuickSilver loaded, you can create a keyboard trigger that will work anywhere. Create the command in the Trigger panel of the QuickSilver preference screen, then double click the line under the "Trigger" column to set the hotkey.

Note, if you are using Snow Leopard, you'll need the forked version in order to get it to work.

share|improve this answer
    
+1. Had forgotten that QuickSilver had keyboard triggers. Thanks! –  Lernkurve Jun 22 '10 at 17:55

I find Spotlight, Quicksilver, or Alfred to be very quick (and Alfred learns from your habits, so Chrome should pop to the top when you hit "c").

If you're typically using your mac in one location regularly (e.g. an office), you can get an external keyboard with lots of extra fancy keys. I have a Microsoft wireless keyboard and mouse plugged into my MacBook Pro. Using the drivers provided by Microsoft, I have the web browser button mapped to Chrome and I can get to it quickly with that one button push.

share|improve this answer
    
+1. Thanks for the hint about only typing "c"! Can't believe I kept typing more letters that necessary. –  Lernkurve Jun 22 '10 at 17:57

Fastest, easiest, cheapest method:

Open Script editor, Applescript:

tell application "Google Chrome"
    activate
end tell

Save. Use Fastscripts to assign a shortcut. (Fastscripts is free for up to 10 shortcuts)

There are other methods not requiring Fastscripts. On Snow Leopard, you can make a service that runs the applescript, and Services can be assigned keyboard shortcuts in the System Preferences…

You could also use an application like Keyboard Maestro.

Dragthing has been around for years and also can assign keyboard shortcuts to applications, I believe.

share|improve this answer
    
+1. Thanks for the Apple Script example! –  Lernkurve Jun 22 '10 at 17:54
    
And reopen before activate also makes a new window if there are no open windows. And then, there's recently been a lot of new apps for assigning shortcuts directly, like Apptivate and NuKit. –  ؘؘؘؘ Mar 7 '11 at 14:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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