I forked this project because it wouldn't compile for MacOS 15.2 (24C101) I made some fixes to make it possible.
A command-line tool to manage default applications for file types on macOS. It provides an interactive interface to set default applications for individual file extensions or groups of related file types (like video, audio, images, etc.).
© 2025, Vitalii Tereshchuk
Download the file dutis-macos.tar.gz
from the Releases
section and unzip it.
Inside the archive there is a file dutis
which you should copy to /usr/local/sbin
or /usr/local/bin
I prefer to use ~/.local/bin
So you need to run the command:
chmod +x ./dutis
sudo xattr -rd com.apple.quarantine ./dutis
cp ./dutils ~/.local/bin
Another way is a local build.
git clone https://github.com/xvoland/dutis.git
cd dutis
cargo build --release
If the build was successful, you can find the compiled file in
cd target/release
chmod +x ./dutis
cp ./dutis ~/.local/bin
No matter if I get the money or not, I'm gonna keep making the app better 'cause I love seeing folks use it and reach their goals.
And you know what? Every $1 really makes a difference for folks like me.
It helps cover stuff like domain hosting and the hours I put into coding, which would be super awesome and free up some more family time. Thanks a bunch!
BTC (ERC20): 0x17496b75d241d377334717f8cbc16cc1a5b80396
USDT (TRC20): TAAsGXjNoQRJ7ewxSBL2W3DUCoG7h8LCT6
A command-line tool to manage default applications for file types on macOS. It provides an interactive interface to set default applications for individual file extensions or groups of related file types (like video, audio, images, etc.).
⚠️ Note: This tool is designed specifically for macOS and will not work on other operating systems.
⚠️ Warning: This tool relies on deprecated macOS CoreServices APIs (deprecated since macOS 10.4–12.0). While it currently works, it may become unstable or stop working in future macOS versions. Apple has not provided direct replacements for these APIs, making this the only available approach for programmatically managing file type associations.
- 🎯 Set default applications for individual file extensions
- 👥 Batch set default applications for groups of file types (video, audio, image, etc.)
- 🔍 Interactive selection of applications
- 🎨 Color-coded output for better visibility
- ⚡ Fast and efficient Rust implementation
- 🔄 Supports common file type groups out of the box
brew tap tsonglew/dutis
brew install dutis
cargo install dutis
git clone https://github.com/tsonglew/dutis.git
cd dutis
cargo build --release
# Set default application for a single file extension
sudo dutis <file-extension>
# Example: Set default application for .mp4 files
sudo dutis mp4
# Set default application for a group of file types
sudo dutis --group <group-name>
# Example: Set default application for all video files
sudo dutis --group video
⚠️ Note:sudo
is required because changing default applications requires system-level permissions.
The following file type groups are supported:
video
: Common video formats (mp4, avi, mkv, etc.)audio
: Audio formats (mp3, wav, aac, etc.)image
: Image formats (jpg, png, gif, etc.)code
: Programming and markup files (py, js, rs, etc.)archive
: Archive formats (zip, tar, gz, etc.)
You can view the full list of supported extensions in the config/groups.yaml
file.
Dutis uses a YAML configuration file to define file type groups. The default configuration is located at config/groups.yaml
. You can modify this file to add or remove file extensions from groups.
Example group configuration:
groups:
video:
- mp4
- avi
- mkv
# ...
audio:
- mp3
- wav
- aac
# ...
- macOS operating system
- Rust 1.56 or later (for building from source)
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
- 🔥⚒️ Fix SSD Overheating! Portable SSD for iPhone & MacBook | WD SN740 SanDisk NVMe Heatsink
- 🔥 JEYI Portable SSD for iPhone and Macbook SSD WD SN740 SanDisk
- 👀 WONLINK 1200Mb WL-NE3501 wireless repeater 802.11bgnac 1200 Megabits
- AirDrop Missing on macOS Sequoia? Easy Fix for Finder and AirDrop Issues!
- 👀 Review UGREEN HiTune H6 Pro Earbuds 2024 Best Deal: Hi-Res Wireless Headphones ANC LDAC