duti
Duti is a command line tool designed for macOS, which stands for "default application utility". It allows users to manage the default applications associated with file types on their system. With duti, users can easily change and configure which application should open specific types of files.
The tool is extremely versatile, offering a wide range of options for customization. Users can set default applications based on file extensions or Uniform Type Identifiers (UTIs). They can also specify the default application for opening URLs or managing the default browser.
Duti provides a simple and intuitive syntax for modifying default applications, making it accessible even to those with limited command line experience. It offers commands to set, list, or remove default applications for various file types. The tool can also import and export configurations, making it easy to transfer settings between different machines.
The customization options provided by duti can greatly enhance productivity by allowing users to streamline their workflow. Whether it's changing the default text editor or specifying image editing software, duti provides a convenient and efficient way to manage default applications on macOS.
List of commands for duti:
-
duti:tldr:42d16 duti: Set Safari as the default handler for HTML documents.$ duti -s ${com-apple-Safari} ${public-html} alltry on your machineexplain this command
-
duti:tldr:5bb29 duti: Display information about the default application for a given extension.$ duti -x ${ext}try on your machineexplain this command
-
duti:tldr:5de8f duti: Display the default handler for a given UTI.$ duti -d ${uti}try on your machineexplain this command
-
duti:tldr:650ac duti: Set Finder as the default handler for the ftp:// URL scheme.$ duti -s ${com-apple-Finder} "${ftp}"try on your machineexplain this command
-
duti:tldr:b18e1 duti: Display all handlers of a given UTI.$ duti -l ${uti}try on your machineexplain this command
-
duti:tldr:bd39a duti: Set VLC as the default viewer for files with `.m4v` extensions.$ duti -s ${org-videolan-vlc} ${m4v} viewertry on your machineexplain this command