Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

How can I open a file with an application, other than the default, using a keyboard shortcut? I don’t want to change the default application for the filetype.

E.g. sometimes I want to open a .html file using an editor instead of a browser.

share|improve this question
    
The closest I get is if I know the name of the app, I press Cmd Shift /, then start typing the name, and use the down arrow to select Open With > App –  Redandwhite Nov 27 '12 at 12:44

4 Answers 4

I'm afraid there's not shortcut. You can, though, create your owns.

To do so just:

  1. Go to System Preferences / Keyboard / Keyboard Shortcuts / Applications.
  2. Click the + button.
  3. Choose Finder, from the drop-down list.
  4. On the menu title field add the exact name of the menu bar item. It this case it should be Other... instead of Open with.
  5. Pick your keyboard shortcut and click Add.

You'll be able to test the shortcut right away. Just mind the Open always with option!

share|improve this answer
    
I dont think this works. I just tried and looks like Finder confuses Open With and Always Open With (10.7.5): The keyboard shortcut pref and the error message –  Nivas Nov 27 '12 at 12:37
    
Also, as a side effect of adding the shortcut, the Open With context menu item (ctrl+click) becomes Always Open With whenever the keyboard shortcut is mapped: Before and After –  Nivas Nov 27 '12 at 12:43
    
@Nivas Indeed, that's why you have to write Other... instead of Open with.... This is how it should look like. It's in Spanish, but you see my point. –  Thecafremo Nov 27 '12 at 12:57
    
@Nivas And here the preferences panel, in case I didn't make myself clear enough. –  Thecafremo Nov 27 '12 at 13:02
1  
Ah... I did not know that. Other... does work. (It does amaze the programmer in me though that there is an implicit assumption that the menu items should have unique names. What if another submenu has an Other? But that is beyond this question...) –  Nivas Nov 27 '12 at 13:07

The best solution for me:

  1. Select file you want to open
  2. Press ++/ (opens up the mighty Help search)
  3. Then start to type a name of app you want to open
  4. Use arrow keys to select right menu item
  5. Press Enter
  6. Done!

For example I want to open HTML-file with Sublime Text instead of Chrome. I navigate to this file, press shortcut, type in "su", press down-arrow and press enter!

enter image description here

share|improve this answer

I have used FastScripts to assign a shortcut to this script. It can also be used to select the open recent menus in other applications.

try
    set l to {"Open With", "Open Recent", "Open Recent File", "Recent Projects", "Open Recent Set"}
    tell application "System Events" to tell (process 1 where it is frontmost)
        tell menu bar item 3 of menu bar 1
            click
            repeat with x in l
                try
                    menu item x of menu 1
                    click menu item x of menu 1
                    exit repeat
                end try
            end repeat
        end tell
    end tell
end try

I also used scripts like in 10.6 and earlier:

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

There is a bug that makes them unusable in 10.7 and 10.8 though. It could be avoided by focusing another application at the start, but it results in a visual glitch.

You could also use Automator services, but there is another bug where the shortcuts for services don't always work until the services menu has been shown from the menu bar.

share|improve this answer

Right click on the file > press h key > use arrow keys to navigate

share|improve this answer
    
This does not appear to work on OS X 10.9. Do you have any third party utilities installed that may be providing this functionality? –  Graham Miln Mar 6 at 17:03

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.