[comp.unix.aux] launch command

dale@ora.UUCP (Dale Dougherty) (06/02/89)

Has anyone figured out how to launch an application with a document?
I'm trying to write a shell script to open a HyperCard stack directly,
rather than having to go through the Home card.  The launch documentation
says a document should be specified as the second argument.  launch
either ignores the argument, says it cannot find the document, or
it presents a file dialog box stating "Where is  ?" (the filename
does not appear as it should).  I encounter the same problem trying
to open Microsoft Word with a specific document.  

I have tried every possible variation of absolute or relative pathnames, 
using / and : uniquely or in combination, to no avail.  

The documentation also says nothing about needing the absolute
pathname of the application, if the application is not in the current directory.
I'd have thought it might look in /usr/toolboxbin or use your path.  
At any rate, such long commands necessitate a simple shell script, 
containing the line:

	launch /usr/toolboxbin/HyperCard $1

Trouble is, the $1 is ignored.  Thanks for any enlightenment you can
provide.
-- 
Dale Dougherty (617) 354-5800
O'Reilly & Associates, Inc., Publishers of Nutshell Handbooks
90 Sherman Street, Cambridge, MA 02140
UUCP:	uunet!ora!dale      ARPA:   dale@ora.uu.net