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



  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.


  • junichi_y December 6, 2020
  • Sid Savara December 6, 2020
  • Raam Dev December 6, 2020
  • Raam Dev December 6, 2020