Open With · macOS

On this page 7

Open With is the macOS Finder command that lets a user open a file in a chosen application instead of the default one, and optionally change the default app for that single file or for every file of the same type. It is one of the everyday tools of the Finder & files workflow, available from the File menu, the shortcut menu and the Get Info window.

Behind the command sits Launch Services, the macOS framework that records which applications can open which content types. Open With is therefore the visible front end of a system that decides what happens every time a document is double-clicked, whether in Finder, in Mail or in a download list.

How Open With chooses an application

When a file is opened, macOS first determines its Uniform Type Identifier (UTI), such as public.jpeg or com.adobe.pdf, mainly from the filename extension. Launch Services then looks up which installed applications declare support for that type in their Info.plist files and which one is marked as the preferred handler.

The Open With submenu lists the default application first, labeled with the word default, followed by other apps that claim the type. An entry named Other opens a chooser where any application can be selected, including apps that do not officially declare support for the format.

Choosing an app from the submenu is a one-time action: the file opens in that app, but the default stays unchanged. Persistent changes require the Always Open With option or the Change All button described below.

Ways to reach the Open With command

macOS offers several entry points to the same feature, and each has a different scope of effect. The table compares them.

Entry pointHow to reach itScope of the change
Shortcut menuControl-click or right-click a file, then Open WithOpens once, no default change
Always Open WithHold the Option key while the shortcut menu is openSets the default for that one file
File menuSelect a file, then File and Open With in the menu barOpens once, no default change
Other chooserOpen With, then Other, with the Always Open With checkboxOne file when the box is checked
Get Info with Change AllCommand-I, Open with section, Change AllEvery file of that type for the current user
Entry points and their scope

The distinction between one file and all files of a type causes most confusion. A per-file preference is stored with the document itself, while the Change All preference is stored in the user’s Launch Services settings and therefore applies across the whole account.

Where macOS stores Open With preferences

The two kinds of preference live in different places, which explains why they behave differently when files are copied or shared. The following table summarizes the storage locations.

Preference typeStorage locationTravels with the file
Per-file overrideExtended attribute on the documentYes, when copied between Macs that keep attributes
Per-type defaultLaunch Services preferences in the user LibraryNo, it belongs to the user account
App declarationsThe application bundle’s Info.plistNot applicable
Storage of default app preferences

Because the per-file override is an extended attribute, it can be lost when a file passes through a system that strips attributes, such as some cloud services, email attachments or FAT-formatted drives. The xattr command in Terminal can list or remove it when a single file keeps opening in an unexpected app.

Open With is often confused with neighboring features that also act on documents. Each answers a different question about a file, as the comparison shows.

ToolMain purposeChanges the default app
Open WithOpen a file in a selected applicationOptionally
Quick LookPreview contents without launching an appNo
Get InfoInspect metadata and set the Open with sectionYes, through Change All
Quick ActionsRun a small task such as rotate or convertNo
open commandOpen files from Terminal, optionally with -a for an appNo
Related ways to act on a file

In Terminal, open -a Preview report.pdf performs the same one-time action as the Open With submenu, which makes it useful in scripts and automation.

Common problems and practical advice

Most Open With problems come from a stale Launch Services database or from conflicting preferences. Typical symptoms include duplicate entries for the same app, apps that were deleted long ago, or a default that reverts after an update.

  • Duplicate or ghost entries usually appear when several copies of an app exist, for example on a backup drive or in a downloads folder; removing the extra copies normally cleans the list.
  • A default that reverts often follows an app update that reasserts its document types; setting Change All again usually fixes it.
  • Files from other systems without an extension may have no reliable type, so Open With shows few suggestions; adding the correct extension restores normal behavior.
  • Recommended Applications in the Other chooser can be switched to All Applications, but forcing an unsupported app may open the file incorrectly or not at all.

Administrators who must set defaults on many Macs generally use configuration profiles or scripting tools rather than Change All, because the Finder setting applies only to the logged-in user.

Explained without jargon

Every file on a Mac has a usual app that opens it. Photos might open in Preview, and documents might open in Pages. Open With lets a person pick a different app instead.

It works in two ways. The user can open a file once in another app, and nothing else changes. Or the user can tell the Mac to always use the new app, either for that file or for every file of the same kind.

It is like choosing which door to enter a building through. The main door is the default, but any other door can be used when needed.

A typical use case

A graphic designer receives a batch of PNG screenshots from a client. On her Mac, PNG files open in Preview, but she needs them in her image editor to add annotations.

For the first file, she Control-clicks it in Finder, chooses Open With and selects the image editor, which is a quick one-time choice. Realizing she will edit dozens of these files every week, she selects one PNG, presses Command-I, picks the editor in the Open with section and clicks Change All, then confirms the dialog.

From then on, every PNG on her account opens directly in the editor with a double-click. When she only wants a fast look at a file, she presses the Space bar for Quick Look, so the new default saves time without slowing down simple previews.