The question came up on how to handle the magic of OS X's document passing
when you double-click on a doc.  This is done via Carbon APIs, so it is a
Tk-level command.  In particular, it is ::tk::mac::OpenDocument that will be
called if defined.  For Tkx, this means:

Tkx::interp_alias("", "::tk::mac::OpenDocument",
                  "", [\&tk_open_document]);

sub tk_open_document {
     # args received in @_
}

There are others that are relevant that you will find at 
http://wiki.tcl.tk/12987.

Jeff

Reply via email to