-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathduti
35 lines (32 loc) · 1.56 KB
/
duti
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# list all installed apps:
# mdfind kMDItemContentTypeTree=com.apple.application | while read line; do mdls -name kMDItemCFBundleIdentifier -raw "$line"; echo; done
# list all file types:
# /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -dump | grep '[[:space:]]uti:' | awk '{ print $2 }' | sort | uniq | while read line; do echo "$line > "`echo "$line" | xargs duti -l`; done
# list information for a specific file type:
# duti -e js
# duti -x js
com.microsoft.VSCode public.text all
com.microsoft.VSCode public.xml all
com.microsoft.VSCode public.plain-text all
com.microsoft.VSCode public.script all
com.microsoft.VSCode public.shell-script all
com.microsoft.VSCode public.zsh-script all
com.microsoft.VSCode public.php-script all
com.microsoft.VSCode public.ruby-script all
com.microsoft.VSCode public.python-script all
com.microsoft.VSCode public.xhtml all
com.microsoft.VSCode public.json all
com.microsoft.VSCode public.yaml all
com.microsoft.VSCode com.netscape.javascript-source all
com.microsoft.VSCode net.daringfireball.markdown all
com.microsoft.VSCode public.comma-separated-values-text all
com.microsoft.VSCode public.swift-source all
com.microsoft.VSCode public.source-code all
com.microsoft.VSCode com.microsoft.typescript all
com.apple.Preview public.heic all
com.apple.Numbers public.comma-separated-values-text all
com.apple.Numbers public.tab-separated-values-text all
com.tinyapp.TablePlus db all
com.tinyapp.TablePlus sqlite all
com.tinyapp.TablePlus sqlite3 all
com.google.Chrome org.webmproject.webm all