7

How do you remove the default open with application for a file extension? Not change it but remove it so when I try to open it a popup says "There is no application set to open the document “file.blabla”.

  • Why would you want to do that? – lhf Dec 20 '18 at 10:45
  • @lhf because sometimes the application associated with the file is changed to something that was not the default system association and you lose the system associated functionality. – Mike Kormendy Jan 2 at 15:51
6

Use RCDefaultApp. With it, you can set the file association to <disabled>
Another option is to use the command line and lsregister. lsregister is located in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/ To see all the available commands, run /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister. See this article for more information.

  • I know that, but I want to be able to remove the association, not change it. – stas Apr 3 '12 at 17:59
  • @stas Sorry! Updated my answer. – daviesgeek Apr 3 '12 at 18:01
  • Thanks but would you happen to know how to do this with the command line? If you don't I'll just use the app. – stas Apr 3 '12 at 18:03
  • @stas Updated again :-) – daviesgeek Apr 3 '12 at 18:12
  • 1
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -u /Applications/Foo.app && killall Finder – Manav Mar 24 '18 at 16:09
1

@Manav proposes in a comment a straightforward and non intrusive way which worked perfectly for me, and I think should be an answer. In a terminal window, run:

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -u /Applications/Foo.app && killall Finder

  • Yes if you want to remove ALL of the associations for an app. But not if you want to choose which extensions to reset that were associated with that app. – Mike Kormendy Jan 2 at 15:48
-1

All you need to do is right click on the file that you want to open, click "get info" (in the dropdown list) then click "Open with"

enter image description here

After that, select the application you want to open it up with, and select "Change all"

enter image description here

Hope this helps!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .