.\" Text automatically generated by txt2man .TH launcher "11 July 2015" "" "" .SH NAME \fBlauncher \fB .SH SYNPOSIS package require launcher .PP launcher::launchurl url? .PP launcher::launchfile file? .PP launcher::getapppath .PP launcher::getdefaultapp url .PP launcher::setdefaultapp url path-to-app .RE .PP .SH DESCRIPTION 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. .SH EXAMPLES launcher::launchurl http://www.apple.com launcher::launch file ~/Desktop/test.txt launcher::getapppath launcher::getdefaultapp http launcher::setdefaultapp x-man-page [launcher::getapppath] .RE .PP