Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Can't Open a File on Mac? Fixes That Work

· 6 min read · Home Tech

In this article
  1. First, Identify the Real Problem
  2. Use “Open With” to Pick the Right App
  3. Bypass Gatekeeper for Downloaded Apps
  4. Check File Permissions and Locked Status
  5. Force Quit and Reopen the App
  6. Recover a Corrupted File
  7. When the File Type Is Unknown
  8. Frequently Asked Questions

When a file won't open on your Mac, the fix usually comes down to checking the file type, the app you're using, and macOS's security settings—and in most cases, a simple right-click or a quick settings change solves it. Below are the specific steps to try, from the most common cause to the more technical ones.

First, Identify the Real Problem

Before changing any settings, look at what happens when you double-click the file. The error message or the absence of one tells you a lot:

  • “No application set to open the document” — macOS doesn't know which app should open this file type.
  • “The application can't be opened” — the app itself is damaged, quarantined by Gatekeeper, or incompatible with your macOS version.
  • Nothing happens — the file may be corrupted, or the app is crashing silently on launch.
  • “You don't have permission” — the file's permissions are wrong, or it's locked.

Once you know which category you're in, the fix is usually straightforward.

Use “Open With” to Pick the Right App

macOS relies on file extensions (like .pdf, .docx, .jpg) and a built-in registry to decide which app opens a file. If that registry entry is missing or wrong, you get the “no application set” error. Here's how to fix it manually:

  1. Right-click (or Control-click) the file.
  2. Select Open With and choose an app from the list. If you see “Other…” at the bottom, click it to browse for any app on your Mac.
  3. If the file opens correctly, you can make that choice permanent: right-click again, select Get Info, expand Open with, choose the app, then click Change All…. This updates the default for all files of that type.

If no app in the list works, the file type may not be supported by anything you have installed. For example, a .pages file won't open if Apple's Pages app isn't installed—even though it's an Apple format.

Bypass Gatekeeper for Downloaded Apps

If the error says the app “can't be opened because Apple cannot check it for malicious software,” or “is damaged and can't be opened,” it's likely a Gatekeeper quarantine issue. macOS tags files downloaded from the internet with a quarantine attribute. To open such an app manually:

  1. Right-click the app in Finder (not the file it's trying to open).
  2. Select Open from the context menu.
  3. Click Open again in the confirmation dialog.

This tells macOS to override the quarantine for that one launch. If the app still won't open, you can remove the quarantine attribute in Terminal:

sudo xattr -rd com.apple.quarantine /path/to/App.app

Replace /path/to/App.app with the actual path. This is safe for apps you trust, but be cautious with files from unknown sources—Gatekeeper exists to protect you.

Check File Permissions and Locked Status

Files downloaded from email or cloud storage sometimes arrive with read-only permissions. To check and fix:

  1. Right-click the file and select Get Info.
  2. Look at the Sharing & Permissions section at the bottom. If your username shows “Read only,” click the lock icon, enter your password, then change it to “Read & Write.”
  3. If the Locked checkbox is ticked, uncheck it.

If you can't change permissions even as an admin, the file may be owned by another user. In that case, copy the file to your Desktop or Documents folder—copying usually resets ownership to you.

Force Quit and Reopen the App

Sometimes the file is fine, but the app is stuck. If you double-click and nothing happens, the app might be running in the background with a hidden error window. Press Command+Option+Esc to open the Force Quit menu, select the app, and click Force Quit. Then try opening the file again. This resolves many “silent” failures, especially with older apps on newer macOS versions.

Recover a Corrupted File

If the file opens in one app but not another, or shows garbled content, it may be corrupted. Before giving up, try these:

  • Open the app first, then use File > Open to navigate to the file. This sometimes bypasses a double-click issue.
  • If it's a document, try opening it in a different app that supports the format (e.g., TextEdit for .rtf, Preview for .pdf).
  • For Office documents, check if the app has a “Recover” option under File > Open.
  • If the file came from email or the web, download it again—it may have been truncated during transfer.

There's no built-in universal file repair tool in macOS, so if none of these work, the file may be genuinely damaged beyond recovery.

When the File Type Is Unknown

If you don't know what kind of file you have, right-click and select Get Info. The “Kind” field shows the type (e.g., “PDF document,” “JPEG image”). If it says “Document” with no specific type, the file extension is missing or unknown. You can try:

  • Adding a common extension manually (e.g., rename file to file.pdf) if you know the source.
  • Using a free online file identifier by uploading a small sample—though be cautious with sensitive files.
  • Opening it in a text editor like TextEdit to see if it starts with readable text (like %PDF or PK for zip).

Frequently Asked Questions

Why does my Mac say “The application can't be opened” for an app I just downloaded?

This is almost always Gatekeeper. Right-click the app and choose Open to override it once. If that fails, check your System Settings > Privacy & Security—there may be a message at the bottom saying an app was blocked, with an Open Anyway button.

How do I open a file if I don't have the app that created it?

First, check if a free alternative can read the format. For example, LibreOffice opens most Microsoft Office files. For Apple's Pages, Numbers, or Keynote, you can use the free iCloud versions online. If the format is proprietary (like some CAD files), you may need to ask the sender to export a PDF or another common format.

What does “You don't have permission to view this file” mean?

It means the file's permissions don't include your user account. Right-click, Get Info, and check the Sharing & Permissions section. If you're not the owner, you can't change it—but copying the file to your own folder often gives you ownership.

Can I force a file to open with an app that doesn't officially support it?

Sometimes yes. Right-click, choose Open With > Other, and select any app. The app may show an error or open a garbled version, but it's worth trying for text-based files. For example, a .csv file can be opened in TextEdit even if Excel isn't installed.

Why does a file open on Windows but not on my Mac?

Usually it's a format issue. Windows may use a proprietary format (like .wmv video or .exe programs) that macOS doesn't natively support. For media, install VLC. For documents, use LibreOffice or ask for a PDF. For executable files, they simply won't run on macOS without a virtual machine.

Is it safe to use Terminal commands to fix file issues?

Most Terminal commands for file permissions are safe if you copy them exactly and point them at the right file. The sudo xattr command above is widely used and harmless when applied to a file you trust. Avoid running random commands from the internet that you don't understand.