Open a file with MC from desktop

Ken Ray kray at sonsothunder.com
Tue Jan 7 01:34:00 EST 2003


It comes in as command line argument $0 if I remember correctly. So when
your app launches, you just say:

  put $0 into myFilePath

and you should get it. Take a look at the entry for "command line arguments"
in the Help Index for more info.

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "pascal.bau" <pascal.bau at wanadoo.fr>
To: <metacard at lists.runrev.com>
Sent: Monday, January 06, 2003 4:13 PM
Subject: Was: Open a file with MC from desktop


> It has to be X platform.
> Under Windows, the filepath is the parameter of what msg???
> Many thanks Ken!
>
> >Is this in Mac or Windows? In Mac OS 9, you'd need to make sure that the
> >type and creator codes were associated with the standalone; in OS X and
> >Windows you'd need to make sure the file extension was registered with
the
> >standalone. Then, when the file is double-clicked and it launches the
> >standalone, you get an 'odoc' appleEvent in MacOS, and you get the
filepath
> >of the document as a parameter to the application under WIndows.
> >
> >Ken Ray
>
>
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
>




More information about the metacard mailing list