Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacRumors

macrumors bot
Original poster
Apr 12, 2001
67,806
38,426



In macOS, the Open With contextual menu that appears when you right-click (or Ctrl-click) on a file provides links to all the applications installed on your Mac that are associated with that file type.

how-to-manage-file-associations-on-your-mac.jpg

At the top of the list is the default app that macOS launches whenever you double-click on files that share the same suffix or extension, with other apps associated with the file type below that, and an Other... option at the bottom which lets you choose an alternative app in case the one you want to use isn't listed.

how-to-manage-file-associations-on-your-mac-1-250x506.jpg
You can easily change the default app associated with a particular file to something else. To do so, click Get Info in the contextual menu and select another app from the Open With: dropdown list in the file's Info pane. To use that app to open all files sharing the same extension, click the Change All... button and select Continue.

Clearing the Open With Menu

If you've installed a lot of applications on your Mac through the years, you may find that some apps appear in the Open With menu that really have no business being there given the kind of file you've selected.

As well as unrelated apps, you may even see references to "ghost" apps that you removed from your Mac long ago. All of which results in a long and cluttered list of launch service links you won't use.

Unfortunately the list isn't directly editable, but there are a couple of ways that you can clear the cruft from it. One option is to grab Titanium Software's free Onyx system utility and run a task to rebuild the Launch Services database.

how-to-manage-file-associations-on-your-mac-3.jpg

Alternatively, if you're comfortable with a command prompt you can open a Terminal window and run the following command, which does the same thing:

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

how-to-manage-file-associations-on-your-mac-4.jpg

Leave the command to run for a few minutes while the LaunchServices database rebuilds, and when the prompt reappears type killall Finder and press Enter to see the changes take effect.

Article Link: How to Manage File Associations in macOS
 
  • Like
Reactions: cstout
I have found, PDFs stored in Mojave Books only open in Preview. File association has no effect on PDFs, unless stored outside Mojave Books.
 
Last edited:
I use Adobe Photoshop CC (subscription software) but I also keep a copy of Adobe Photoshop CS5 installed, in case my CC service is ever interrupted. I've associated Photoshop CC with my psd files, but sometimes double-clicking a psd file opens Photoshop CS5 instead, even if I associated psd files with Photoshop CC using that very psd file. I've never figured out why this happens.

Maybe Apple should bring back Type codes and Creator codes!
 
  • Like
Reactions: LizKat
Fix one thing, break another:
I tried the Terminal command on my High Sierra iMac and now some of my applications have lost their App icon.
They only show a generic app icon.
 
I see a lot of the guides but i cant find them after few days :(. Is there a section on the website where all guides are located???
 
Even easier than terminal and killall Finder:

Hold down Option while you right-click on the Finder icon in the dock. The last entry is Relaunch.
 
I use Adobe Photoshop CC (subscription software) but I also keep a copy of Adobe Photoshop CS5 installed, in case my CC service is ever interrupted. I've associated Photoshop CC with my psd files, but sometimes double-clicking a psd file opens Photoshop CS5 instead, even if I associated psd files with Photoshop CC using that very psd file. I've never figured out why this happens.

Maybe Apple should bring back Type codes and Creator codes!

I sometimes just take apps I want to keep around but "inactive" and I compress them into a ZIP archive. Would that work for Photoshop CS5?
 
I use Graphic Converter for image/photos, & all my image files keep opening with Preview, no matter how many times or what app I change my prefs to.
Anyone know how to fix this?
It's really annoying!
 
Thank you for your post. I'm usually happy opening *.pdf files with the MacOS default program, Preview. By a wide margin my second favorite program for this is LibreOffice (which opens a *.pdf as an editable drawing.). I'd like to be able to select LibreOffice without going through the Open With>Other process, but MacOS doesn't seem to take my Open With history into account when listing the alternate programs. And since this post seems to indicate that there's no hope of editing the Open With list directly, I settled for making LibreOffice the primary program for *.pdf files. This way MacOS's favored Preview does appear high enough on the alternate list that I can use it with a simple Open With (with no further drill-down). It's not ideal, and I would like to read a better solution if anyone posts it.
 
Catalina changed the preferences. In Catalina 10.15.4, setting the preferred application works like it once did. I must have worn them out at Apple Feedback, with hundreds of complaints about this. Apple+I, now works for me.
 
Thanks for the terminal code... Got MS Office on an external drive since MacBook Air HD is tiny, yet all word dox opening in text edit since the last Big Sur update. Been driving me bonkers. Tried right click Finder, relaunch, no joy. Terminal code seems to have worked. Hopefully I've not spoken too soon.... ;-)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.