2

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.

Oliver Salzburg
  • 89,072
  • 65
  • 269
  • 311

2 Answers2

3

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

try
    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.

Lri
  • 42,502
  • 8
  • 126
  • 159
0

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

https://discussions.apple.com/thread/3977270?start=0&tstart=0

Josiah
  • 1,794