moretension / duti

A command-line tool to select default applications for document types and URL schemes on Mac OS X
Other
1.48k stars 66 forks source link

New -o and -t options and allow -d and -l options to display UTI handlers and URI schemes separately #19

Closed nivekkagicom closed 7 years ago

nivekkagicom commented 8 years ago

Add new -o option to display the URLs of applications that are able to handle a file. The option is followed by either a path or file:// URL (e.g., duti -o file://tmp/foo.c)

Add new -t option for OSType file types; similar to -e (extension) option (e.g., duti -t TEXT)

Also changed the -d and -l options to separately display UTI handlers and URI schemes.

Lastly, cleaned up source formatting and usage output

Nakilon commented 1 year ago

Why is it closed?

duti: illegal option -- o

(installed with brew)

Nakilon commented 1 year ago
$ make
...

./util.c:1:10: fatal error: 'CoreFoundation/CoreFoundation.h' file not found
#include <CoreFoundation/CoreFoundation.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
iloveitaly commented 1 year ago

@Nakilon Feel free to reopen w/a fixed version!