From 7fca2dcc0700a08001c64c6c0257a184b59b87f4 Mon Sep 17 00:00:00 2001 From: Darryl Abbate Date: Mon, 3 Sep 2018 13:04:38 -0500 Subject: [PATCH] duti: add page (#2287) --- pages/osx/duti.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/osx/duti.md diff --git a/pages/osx/duti.md b/pages/osx/duti.md new file mode 100644 index 000000000..5f6c61635 --- /dev/null +++ b/pages/osx/duti.md @@ -0,0 +1,27 @@ +# duti + +> Set default applications for document types and URL schemes on macOS. + +- Set Safari as the default handler for HTML documents: + +`duti -s {{com.apple.Safari}} {{public.html}} all` + +- Set VLC as the default viewer for files with .m4v extensions: + +`duti -s {{org.videolan.vlc}} {{m4v}} viewer` + +- Set Finder as the default handler for the ftp:// URL scheme: + +`duti -s {{com.apple.Finder}} {{ftp}}` + +- Display information about the default application for a given extension: + +`duti -x {{ext}}` + +- Display the default handler for a given UTI: + +`duti -d {{uti}}` + +- Display all handlers of a given UTI: + +`duti -l {{uti}}`