How To Change The Default Opening Program For A File Type Mac

Active7 years, 9 months ago

Is there any way to make my application default to open certain file types(e.g from Mail app). In this moment it is opened by Preview by default and the application is listed in the Open in.... Howeever, preview has nothing to do with this file type and this application is the only one, that can handle this file type.

Mac Associate File Type

Select the file which you want to associate, right-click on it, and select the Open With Menu Item and Click on Choose Default Program. This will list all the available softwares/programs for this program.

So I would like to make my application default for this file type, so Preview will not open it by default. Some google search has revealed that in Mac OSX there is key like LSIsAppleDefaultForType, that can make app default, but I can't find any option for IOS...

Olga DaltonOlga Dalton
4262 gold badges12 silver badges25 bronze badges
Change

1 Answer

You have to associate you app with the file types you want it to open.You do this by adding some parameters to your Info.plist.

This post explains it:How do I associate file types with an iPhone application?

Community
Simen Øian GjermundsenSimen Øian Gjermundsen
6021 gold badge8 silver badges22 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

How To Change Default App In Mac

Mac associate file type

Not the answer you're looking for? Browse other questions tagged iphoneobjective-cioscocoa-touchcocoa or ask your own question.

When you double-click a file on your Mac, the operating system will automatically open the file using the program assigned to that type of file. It is possible, though, to open the file using another program if you wish. To open a file on your Mac using a different program, navigate to the file you wish to open and right-click on it to see the file menu as shown below.

Mac Os Default Program

When the file menu opens, click on the Open With option as shown in the image above. This will open the Open With submenu as shown in the image below.

This submenu contains other programs that the Mac OS thinks could properly open the file and manipulate it in some way. If the program you wish to use is listed, then simply select it from this submenu and the file will open using that program.

Mac Choose Default Program

On the other hand, if the program that you wish to use is not listed, then click on the Other... menu option. This will then open the Choose Application dialog where you can select a different application that you wish to use to open the file as shown in the image below.

Change Default Programs On Mac

As you can see from the image above, the Choose Application dialog will display a list of applications that you can choose to open this file with. By default, this dialog will only show Recommended Applications, which means that you will only be able to select the applications that are in bold. If you wish to select a different application than a recommended one, you can change the Enable option to All Applications. This will then allow you to select any application you wish.

Once you have determined the application you wish to use, select it by left-clicking on it once. If you want to make this application always open this particular file, then also put a check mark in the Always Open With check box. Then click on the Open button.

The file will now open with the selected application. If you have any questions about this process please feel free to post them in our Mac OS Forum.