Menu

Tree [a12d3f] master /
 History

HTTPS access


File Date Author Commit
 pkg-resources 2008-01-08 fitterhappier fitterhappier [221e49] Installation to root volume required.
 .gitignore 2009-02-27 fitterhappier fitterhappier [25ec13] Ignoring configure.
 COPYRIGHT 2008-01-06 fitterhappier fitterhappier [0f8353] Added copyright and readme.
 EXCLUDE 2011-01-22 fitterhappier fitterhappier [f5fd15] Add .git & .gitignore.
 Makefile.in 2012-08-14 fitterhappier fitterhappier [a12d3f] Fix builds on Mac OS X 10.7 and 10.8.
 README 2008-10-15 fitterhappier fitterhappier [46a5b2] Documentation for -x.
 VERSION 2007-12-20 admorten admorten [ae609c] Rolling back to generic version.
 aclocal.m4 2012-08-14 fitterhappier fitterhappier [a12d3f] Fix builds on Mac OS X 10.7 and 10.8.
 config.guess 2007-12-10 admorten admorten [a78d5f] Initial revision
 config.sub 2007-12-10 admorten admorten [a78d5f] Initial revision
 configure.ac 2008-03-21 fitterhappier fitterhappier [b47fc8] Added --with-macosx-deployment-target.
 duti.1 2011-04-08 fitterhappier fitterhappier [070e15] UM has nothing to do with duti.
 duti.c 2008-10-15 fitterhappier fitterhappier [4c1db3] Add -x to print out information for default app...
 handler.c 2011-04-23 fitterhappier fitterhappier [875d9c] Fall back to showing handlers for URL schemes i...
 handler.h 2008-10-15 fitterhappier fitterhappier [4c1db3] Add -x to print out information for default app...
 install-sh 2007-12-10 admorten admorten [a78d5f] Initial revision
 plist.c 2008-01-04 fitterhappier fitterhappier [175477] Replaced references to dh with duti.
 plist.h 2008-04-03 fitterhappier fitterhappier [a4d1f2] Added support for LSSetDefaultHandlerForURLScheme.
 util.c 2008-10-15 fitterhappier fitterhappier [4c1db3] Add -x to print out information for default app...
 util.h 2008-10-15 fitterhappier fitterhappier [4c1db3] Add -x to print out information for default app...
 version.c.in 2008-01-29 fitterhappier fitterhappier [b5671e] Removed references to "dh_".

Read Me

* About duti 

    duti is a command-line utility capable of setting default applications for
various document types on Mac OS X, using Apple's Uniform Type Identifiers. A
UTI is a unique string describing the format of a file's content. For instance,
a Microsoft Word document has a UTI of com.microsoft.word.doc. Using duti, the
user can change which application acts as the default handler for a given UTI.


* Compiling

    ./configure
    make
    sudo make install


* Usage

    duti can read settings from four different sources: 1) standard input;
2) a settings file; 3) a Mac OS X XML property list (plist); 4) command-line
arguments. A settings line, as read in cases 1 and 2, consists of an
application's bundle ID, a UTI, and a string describing what role the
application handles for the given UTI. The process is similar when duti
processes a plist. If the path given to duti on the command-line is a
directory, duti will apply settings from all valid settings files in that
directory, excluding files whose names begin with '.'.

duti can also print out the default application information for a given
extension (-x). This feature is based on public domain source code posted
by Keith Alperin on the heliumfoot.com blog.

See the man page for additional usage details.


* Examples

    Set Safari as the default handler for HTML documents:
	% duti -s com.apple.Safari public.html all

    Set TextEdit as the default handler for Word documents:
	% duti
	com.apple.TextEdit	com.microsoft.word.doc	all
	^D

    Set Finder as the default handler for ftp:// URLs:
	% duti -s com.apple.Finder ftp

    Get default application information for .jpg files:
	% duti -x jpg
	Preview
	/Applications/Preview.app
	com.apple.Preview


* Support

    duti is unsupported. You can submit bug reports and feature requests at the
duti SourceForge project page:

    https://sourceforge.net/projects/duti/


* License

    duti is released into the public domain by Andrew Mortensen, 2008. It's
provided as is without warranties of any kind. You can do anything you want
with it. If you incorporate some or all of the code into another project, I'd
appreciate credit for the work I've done, but that's all.

Andrew Mortensen
October 2008