2018-09-03 19:04:38 +01:00
|
|
|
# duti
|
|
|
|
|
|
|
|
> Set default applications for document types and URL schemes on macOS.
|
2021-08-23 20:33:24 +01:00
|
|
|
> More information: <https://github.com/moretension/duti>.
|
2018-09-03 19:04:38 +01:00
|
|
|
|
|
|
|
- Set Safari as the default handler for HTML documents:
|
|
|
|
|
|
|
|
`duti -s {{com.apple.Safari}} {{public.html}} all`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Set VLC as the default viewer for files with `.m4v` extensions:
|
2018-09-03 19:04:38 +01:00
|
|
|
|
|
|
|
`duti -s {{org.videolan.vlc}} {{m4v}} viewer`
|
|
|
|
|
|
|
|
- Set Finder as the default handler for the ftp:// URL scheme:
|
|
|
|
|
2022-02-14 11:21:43 +00:00
|
|
|
`duti -s {{com.apple.Finder}} "{{ftp}}"`
|
2018-09-03 19:04:38 +01:00
|
|
|
|
|
|
|
- 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}}`
|