How to Open Files on Mac: Complete Guide for macOS
Opening files on macOS is designed to be intuitive, but understanding the various methods and file association options gives you greater control over your workflow. Whether you're new to Mac or looking to master advanced file handling techniques, this comprehensive guide covers everything from basic double-clicks to managing default applications and troubleshooting problems.
Basic Methods to Open Files
Double-Click to Open
The most common method:
- Open Finder (click the Finder icon in Dock, or Command + Space and type "Finder")
- Navigate to the folder containing your file
- Double-click the file
- macOS opens it with the default associated application
Control-Click (Right-Click) and Open
- Control-click the file (or right-click with two-finger trackpad tap)
- Select Open from the context menu
- File opens with default application
This method is particularly useful for opening files from unidentified developers, as it bypasses some Gatekeeper restrictions.
Drag and Drop
- Open the application you want to use
- Drag the file from Finder
- Drop it onto the application window or Dock icon
- File opens in that specific application
Excellent for opening files in non-default applications without changing permanent associations.
Select and Press Command + Down Arrow
- Click once to select the file in Finder
- Press Command (⌘) + Down Arrow
- File opens with default application
Keyboard shortcut alternative to double-clicking.
Press Space for Quick Look
- Select a file in Finder
- Press Spacebar
- Quick Look preview appears (doesn't fully open the file)
- Press Space again to close
Quick Look allows you to preview documents, images, videos, and more without launching applications. You can even play videos and flip through multi-page PDFs.
Opening Files with Specific Applications
Using "Open With" Menu
To open a file with an application other than the default:
- Control-click (right-click) the file
- Select Open With
- Choose from the list of compatible applications
- If your desired app isn't listed, select "Other..."
One-Time Application Selection
When selecting "Other..." from the Open With menu:
- Browse to the application (usually in /Applications)
- Don't check "Always Open With"
- Click Open
The file opens in your selected app just this once, leaving the default association unchanged.
Setting a New Default Application
To permanently change which app opens this file type:
Method 1: Via Open With Menu
- Control-click the file
- Select Open With
- Hold Option (⌥) key—"Open With" changes to "Always Open With"
- Select your desired application
Method 2: Via Get Info Window
- Select the file
- Press Command (⌘) + I (or File menu → Get Info)
- Expand the "Open with:" section
- Select your preferred application from dropdown
- Click "Change All..." button
- Confirm when prompted
Now all files with this extension will open in the selected application by default.
Managing Default Applications
Changing Defaults for All Files of a Type
- Select any file of the type you want to configure
- Command (⌘) + I to open Get Info
- Under "Open with:", select your preferred application
- Click "Change All..."
- Click "Continue" in the confirmation dialog
This changes the default application for all files with this extension system-wide.
Reverting to Original Default
If you want to restore macOS's original default application:
- Get Info on the file (Command + I)
- Under "Open with:", look for the application macOS originally suggested
- Select it and click "Change All..."
Common defaults:
- Images: Preview
- PDFs: Preview
- Text files: TextEdit
- Videos: QuickTime Player
- Music: Music app (or iTunes on older macOS versions)
Opening Files from Within Applications
File → Open Menu
- Launch the application
- Click File menu → Open (or press Command + O)
- Browse to file location in the dialog
- Select file and click Open
Drag Files to Dock Icons
- Find your file in Finder
- Drag it to an application icon in the Dock
- When the icon highlights, release
- Application launches and opens the file
Opening Recent Files
Most applications maintain a list of recently opened files:
- Launch the application
- Click File menu → Open Recent
- Select file from the list
Common File Types and Applications
Documents
- .pages: Pages (Apple's word processor)
- .docx, .doc: Pages, Microsoft Word, Google Docs (online)
- .numbers: Numbers (Apple's spreadsheet app)
- .xlsx, .xls: Numbers, Microsoft Excel, Google Sheets
- .key: Keynote (Apple's presentation software)
- .pptx, .ppt: Keynote, Microsoft PowerPoint, Google Slides
- .pdf: Preview (built-in), Adobe Acrobat Reader
- .txt: TextEdit, BBEdit, Visual Studio Code
Images
- .jpg, .png, .gif, .bmp: Preview (built-in), Photos, Pixelmator, Affinity Photo
- .psd: Adobe Photoshop, Affinity Photo, Pixelmator Pro
- .ai: Adobe Illustrator, Affinity Designer
- .sketch: Sketch (design tool)
- .svg: Safari, Chrome, Adobe Illustrator, Affinity Designer
Audio
- .mp3, .aac, .m4a: Music app (built-in), VLC, Spotify
- .wav, .flac: Music app, VLC, Audirvāna
Video
- .mov, .mp4: QuickTime Player (built-in), VLC, IINA
- .avi, .mkv, .flv: VLC, IINA (QuickTime doesn't support these natively)
Archives
- .zip: Archive Utility (built-in), The Unarchiver, Keka
- .rar, .7z, .tar.gz: The Unarchiver, Keka, BetterZip
Troubleshooting: File Won't Open
Error: "There is no application set to open the document"
Cause: macOS doesn't have a default application for this file type.
Solution:
- Click "Choose Application..." in the error dialog
- Or click "Search App Store" to find compatible apps
- Browse to an appropriate application
- You may need to enable "All Applications" at the bottom of the dialog to see all options
Error: "The application cannot be opened"
Cause: Gatekeeper security is blocking an unsigned or unverified application.
Solution:
- Control-click the file
- Select Open
- Click Open again in the confirmation dialog
This bypasses Gatekeeper for this specific file. For applications:
- System Preferences → Security & Privacy → General tab
- Look for a message about the blocked app
- Click "Open Anyway"
Note: Only do this for software you trust. Gatekeeper protects against malware.
Wrong Application Opens
Cause: Incorrect file association.
Solution:
- Select the file
- Command (⌘) + I for Get Info
- Under "Open with:", select the correct application
- Click "Change All..." to apply to all files of this type
File Opens but Displays Incorrectly
Possible causes:
- File is corrupted
- Wrong application is opening it
- Application needs updating
- File format is too new or uses proprietary features
Solutions:
- Try opening in an alternative application
- Update the application via App Store or developer's website
- Re-download the file (may have been corrupted)
- Check if file was created on Windows and has compatibility issues
Resetting File Associations (Terminal Method)
If file associations are completely broken, you can reset Launch Services database:
- Open Terminal (Applications → Utilities → Terminal)
- Type or paste the following command:
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
- Press Enter
- Restart your Mac
- Reconfigure file associations as needed
Warning: This resets all file associations system-wide. Use as a last resort.
Opening Files via Terminal (Command Line)
Using the 'open' Command
open filename.pdf
Opens file with default application.
open -a "Adobe Acrobat" filename.pdf
Opens file with specific application.
open -e filename.txt
Opens file in TextEdit.
open -R filename.pdf
Reveals file in Finder (doesn't open it).
Opening Directories
open .
Opens current directory in Finder.
open ~/Documents
Opens Documents folder in Finder.
Opening URLs
open https://www.example.com
Opens URL in default web browser.
Security Considerations
Gatekeeper Protection
macOS Gatekeeper verifies applications before they run:
- App Store apps: Highest trust level
- Identified developers: Apps signed with valid Apple Developer IDs
- Unidentified developers: Blocked by default
Safe File Handling Practices
- Only open files from trusted sources
- Be cautious with .dmg, .pkg, .app, and .zip files from unknown senders
- Use built-in XProtect and Gatekeeper (don't disable unless necessary)
- Keep macOS updated for latest security patches
- Scan suspicious files with antivirus software (Malwarebytes, etc.)
Quarantine Attribute
Files downloaded from the internet receive a quarantine flag. macOS prompts "This file was downloaded from the internet" when opening. This is a security feature—verify the source before proceeding.
To remove quarantine attribute (advanced users only):
xattr -d com.apple.quarantine filename.pdf
Tips and Tricks
Spotlight Search
- Press Command (⌘) + Space
- Type filename or content keywords
- Select file from results
- Press Enter to open, or Command + Enter to reveal in Finder
Recent Files in Finder
- Open Finder
- Click Recents in the sidebar (or File menu → Recents)
- See all recently opened/modified files
- Double-click to reopen
Preview Multiple Files
- Select multiple files in Finder
- Press Spacebar for Quick Look
- Use arrow keys to navigate between files
- Or click thumbnail strip at bottom
Useful Keyboard Shortcuts
- Command + O: Open selected file or folder
- Command + Down Arrow: Open selected item
- Command + Up Arrow: Go to parent folder
- Spacebar: Quick Look preview
- Command + I: Get Info window
- Command + Delete: Move to Trash
- Command + Shift + Delete: Empty Trash
Opening Files from Dock
Right-click an application icon in the Dock:
- Select "Show Recents"
- Click a recent file to open it immediately
Working with iCloud Drive
- Open Finder
- Click iCloud Drive in sidebar
- Files stored in iCloud appear with cloud icons
- Double-click to download and open (if not already local)
- Files sync across all your Apple devices
To save files to iCloud Drive:
- File → Save (Command + S) in any application
- Select iCloud Drive in the save location dropdown
- Choose subfolder (Desktop, Documents, or create new)
- Click Save
Installing Additional Applications
App Store (Recommended)
- Open App Store from Dock or Applications folder
- Search for file type or application name
- Click Get or Price button
- Enter Apple ID password or use Touch ID/Face ID
- App installs automatically and appears in Applications folder
Third-Party Downloads
- Download .dmg (disk image) or .pkg (installer package) from developer's website
- Open the downloaded file
- For .dmg: Drag app icon to Applications folder
- For .pkg: Follow installation wizard
- Eject .dmg if applicable
Popular Free Mac Applications
- VLC Media Player: Plays almost any video/audio format
- IINA: Modern, native macOS media player
- The Unarchiver: Opens any archive format (RAR, 7Z, etc.)
- LibreOffice: Free Office suite (Microsoft Office alternative)
- GIMP: Free image editor (Photoshop alternative)
- Visual Studio Code: Code and text editor
- Keka: File compression and extraction
Opening Files on Network Volumes
- Finder → Go menu → Connect to Server (Command + K)
- Enter server address:
smb://server.local
orafp://server.local
- Click Connect
- Enter credentials if prompted
- Network volume mounts and appears in Finder sidebar
- Open files normally
To favorite a network location:
- After connecting, drag the mounted volume to Finder sidebar under "Favorites"
- Or use Finder → Preferences → Sidebar to customize
mastering file opening techniques on macOS enhances your productivity and gives you greater control over your digital workspace. From simple double-clicks to advanced Launch Services management, understanding these methods ensures you can handle any file type efficiently. Remember to keep your software updated, be cautious with files from unknown sources, and leverage macOS's powerful built-in tools like Quick Look and Spotlight for faster workflows.