Messing with these things can be somewhat dangerous.
Having brought you this far, I'm going to leave HOW to set the values you want as an exercise for the reader. there is no LSHandlerRoleViewer at all) and that it is set to the UTI for the application that you desire to associate the type with. What I do see is that 99% of the time LSHandlerRoleAll is the only one set (i.e. I can't find documentation on that anywhere. NOTE: I have no idea what constitutes the difference between LSHandlerRoleAll and LSHandlerRoleViewer. The UTIs for Safar and TextMate are in my example above, but to generically find the UTI for an application: $ cd /Applications/MyApp.app/Contents Just know they are there when you look through the output.Īs you can see, you'll need to find the UTI for the application you want to use. Note, there are other constructs in that file, but they aren't relevant to what you asked. So, when you have a "good" content type to use, the first construct is better. LSHandlerContentTagClass = "public.filename-extension" Now that we know what our files are, lets look at the ist file and see what we can do: $defaults read And the parent types are too generic to be useful. So, it created a dynamic UTI that we can't use for anything.
KMDItemContentType = "dyn.ah62d4rv4ge8048pftb4g6" Get the UTI for a file: $ mdls myFile.xml If, however, you don't have those applications, you may not have those types declared. For example, decent text editors like TextMate or TextWrangler will add quite a few type declarations to the type hierarchy when you use them on your system. It depends on if the type has been formally declared on your system or not. Remember how I said UTIs were important? There are multiple ways to identify a file. Now that you know all about defaults and UTIs (er, not the medical kind), now we can talk about setting file associations from a script/command line.įirst, you'll need to know the proper way to identify the files for which you want to make an association. I don't know what it is and have no association with them, the explanation is just a good one.) (Disclaimer: they seem to be selling something on that site. A decent article on this can be found here. Before you go try to find and modify that file, I suggest you familiarize yourself with OS X's domain hierarchy for defaults (a.k.a. OS X stores information on preferred file associations in a preference file with the name. Look at Wikipedia's Uniform Type Identifier page.
You'll need to get very familiar with Uniform Type Identifiers. This entry was posted in PDF Reader, Product blog and tagged control panel, foxit reader, Microsoft Edge, PDF reader, PDF viewer.This is doable, but probably isn't as straightforward as you might think. Once you have Foxit PDF Reader (or any other Foxit program) installed, you’ll have a full-fledged PDF reader with a lot of other useful features, so this switch may be your last where PDFs are concerned.
Click on Foxit PDF Reader to open all PDF documents with it.
It’s the Windows logo in the bottom left of your screen.
Setting Foxit PDF Reader as the new default on Windows 10: You’ll get a dialogue box asking you to confirm your choice.Select the Open with: menu, then choose Foxit PDF Reader to open all documents like that one.Expand Open with: by clicking on the triangle to the left.Click on the File menu and select Get Info.Find the PDF file type you’d like to open with a specific app, and select it.
Setting Foxit PDF Reader as the new default on Mac OSX: This may suffice if you just want to open and read PDF files, however, if you want a feature-rich application, then making Foxit PDF Reader your default PDF viewer is easy to do. Unless you change the settings, Microsoft Edge is typically the default Web browser and PDF reader for Windows 10.