Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering if there was a way to set a keyboard shortcut to open a file with a specific program.

For example, for building emails I use Dreamweaver, and I would like to highlight a file and press, say, Cmd+Alt+D to open that file in Dreamweaver. Or press Cmd+Alt+C to open a file in Coda, which I use for websites.

share|improve this question
Related topic. – Daniel Beck Oct 3 '12 at 21:02

You could use FastScripts to assign shortcuts to scripts like this:

    tell application "Finder"
        open (get selection) using path to application "TextMate"
    end tell
end try

There's a bug on 10.7 and 10.8 where the selection property refers to the second frontmost window in new windows though.

Automator services would also work in other applications:

But there's another bug where the shortcuts for services don't always work until the services menu has been shown once from the menu bar.

share|improve this answer
I was looking for a way to add an "Edit in MacVim" button to Finder's toolbar. Your answer + Automator really nailed it. – Nek Apr 7 '13 at 17:28

You should check out this site and see if it helps.

share|improve this answer
Link-only answers are discouraged, as they are sometimes difficult to figure out (linking to lengthy discussions) and can become unavailable when the linked site changes. Please summarize the gist of the solution directly in your answer, and provide the link as additional reference or source attribution. – Daniel Beck Oct 3 '12 at 21:01

Your Answer


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.