How to Manage File Associations in macOS

Discussion in 'Mac Blog Discussion' started by MacRumors, Nov 28, 2018.

  1. MacRumors macrumors bot

    MacRumors

    Joined:
    Apr 12, 2001
    #1
    [​IMG]


    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.

    [​IMG]

    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.

    [​IMG]
    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.

    [​IMG]

    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

    [​IMG]

    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
     
  2. blackxacto, Nov 28, 2018
    Last edited: Nov 28, 2018

    blackxacto macrumors 6502a

    blackxacto

    Joined:
    Jun 15, 2009
    Location:
    Middle TN
    #2
    I have found, PDFs stored in Mojave Books only open in Preview. File association has no effect on PDFs, unless stored outside Mojave Books.
     
  3. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #3
    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!
     
  4. blackxacto macrumors 6502a

    blackxacto

    Joined:
    Jun 15, 2009
    Location:
    Middle TN
    #4
    I liked storing PDFs in IBooks before Books. Once Mojave came, they’re outside here on.
     
  5. Detektiv-Pinky macrumors 6502a

    Detektiv-Pinky

    Joined:
    Feb 25, 2006
    Location:
    Berlin, Germany
    #5
    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.
     
  6. mlody macrumors 6502a

    Joined:
    Nov 11, 2012
    Location:
    Windy City
    #6
    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???
     
  7. forzagaribaldi macrumors newbie

    Joined:
    Sep 30, 2008
    Location:
    London, UK
    #7
    They seem to all be listed here: https://www.macrumors.com/how-to/
     
  8. hulabaloo macrumors newbie

    Joined:
    Dec 7, 2008
    #8
    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.
     
  9. ignatius345 macrumors 68000

    Joined:
    Aug 20, 2015
    #9
    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?
     
  10. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #10
    Presumably it would. Thanks for suggesting this.
     
  11. Gravydog316 macrumors regular

    Gravydog316

    Joined:
    May 17, 2016
    Location:
    Saskatchewan, Canada
    #11
    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!
     

Share This Page