Mac OS X: Fixing 'Always Open With'

After installing the TextMate editor I wanted all shell scripts (files ending with the .sh extension) to open in TextMate. Unfortunately, selecting Open With -> Other... from the context menu, choosing an application, and then clicking the Always Open With checkbox doesn't change the default application for all files with that extension, but rather only changes that specific file.

If you want to change the default application used to open all files with a specific extension, the steps are slightly different:

Select the file and choose File -> Get Info (or Cmd+i) and expand the Open With section:

Get Info

From here, select the application you want to use for opening those file types and then click Change All. This will update the OS X Launch Services Database, which is consulted when opening files. Now all files with that extension will be opened with the application you selected.

Write a Comment

Comment

16 Comments

  1. Thanks a lot. This was bugging me so badly I can’t tell you!
    Why right-click -> Open With -> Other -> then ticking the “always open with” check-box simply doesn’t work beats me.

Webmentions

  • junichi_y December 6, 2020

    Mac OS X: Fixing β€˜Always Open With’: http://bit.ly/kn5erb

  • Sid Savara December 6, 2020

    Choosing happiness & growth over death & stagnation http://tr.im/HuGM via @raamdev

  • Raam Dev December 6, 2020

    If you haven't seen my latest post on choosing happiness & growth over death & stagnation, I'd love to hear your opinion! http://tr.im/HuGM

  • Raam Dev December 6, 2020

    I finally figured out the correct way to set all files to 'Always Open With' a specific app on Mac OS X: http://tr.im/HuGM