💻 Software
How to change default app for all files of particular file type through terminal in OS X?
Fresh7 days ago
Mar 15, 202635710 viewsConfidence Score1%
1%
Problem
How can I change the default app for all files of a particular file type through the Terminal in OS X?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to change default app for all files of particular file type through terminal in OS X?
Low Risk
I have a simpler way. You'll want Homebrew if you don't already have it: Install duti: Now you need to find the id of the app you want to use, and assign it to the extension you want to use it for. In this example, I already use Brackets for and I want to also use it for files instead of xcode. Get the default app id for files: The last line is the id. Use this app id for all files:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix