Mac change default application for file types

broken image
broken image

There is a command line application that can do this for you, it is called Duti and it is availible at. plist file on the new system, or on the new user profile, and and login again, and this should be enough for the associations be replicated and ready. I suggest you could manually customize one system the way you want it, by traditional Finder file associations methods, and once it is fine, you save that. I cannot fully answer your question now, but this is the starting point to look at and understand how those parameters works, and after testing and figuring it out we can expand this information with complete details and some examples of edited working versions.īut for the specific situation, considering the case of making a kind of template to just to replicate, (or to have it stored as a backup): LSHandlerContentType = 'org.7-zip.7-zip-archive' Sample output: $ defaults read ~/Library/Preferences//.plist This command will output on terminal the file contents, which has each associated application with the corresponding file types.

broken image

You can read the file contents using: defaults read ~/Library/Preferences//.plist As far as I know, all file associations are defined on the file.įor macOS Mojave/Catalina this file is located at: ~/Library/Preferences//.plist