Tk-Components

Artifact [9e034834c9]
Login

Artifact 9e034834c93b9bc6182ece45031e789fba8e6e61:


<HTML>
<HEAD>
<TITLE>launcher</TITLE>
</HEAD>
<BODY>
<H1>launcher</H1>
<HR>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->

</PRE>
<H2>SYNPOSIS</H2><PRE>
       package require launcher

       launcher::launchurl url?

       launcher::launchfile file?

       launcher::getapppath

       launcher::getdefaultapp url

       launcher::setdefaultapp url path-to-app




</PRE>
<H2>DESCRIPTION</H2><PRE>
       This  module  allows you to launch a URL or a file on the Mac using the
       system's default application for that URL or  file  type.  It  provides
       similar  functionality  to  the  "/usr/bin/open" command-line tool, but
       works without shelling out to an external  program.  The  package  also
       allows  you  to query the system for a default app for a particular URL
       type, i.e. http://, and also to set the default app  for  a  particular
       URL.  Finally,  the  module  provides a convenience function to get the
       current app path.


</PRE>
<H2>EXAMPLES</H2><PRE>
       launcher::launchurl http://www.apple.com

       launcher::launch file ~/Desktop/test.txt

       launcher::getapppath launcher::getdefaultapp http launcher::setdefault-
       app x-man-page [launcher::getapppath]





                                                        launcher(11 July 2015)
</PRE>
<HR>
<ADDRESS>
Man(1) output converted with
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</ADDRESS>
</BODY>
</HTML>