Lisp HUG Maillist Archive

Launching application with a document

Hi, does anybody know how to launch an application so that it
will load the document file supplied?

On the Macintosh Common Lisp this was done easily with a
little function (launch-application "application name" "file") that I'm
missing...

I know that LispWorks has the capability to communicate with
other programs, but I have to admit that the documentation appears
much too complicated for a person without a deeper knowledge on
Windows internals.

Any hints to the right direction would be helpful.

Pekka


Re: Launching application with a document

On Fri, 25 Nov 2005 19:21:16 +0200, Pekka Tolonen <pekka.tolonen@welho.com> wrote:

> Hi, does anybody know how to launch an application so that it will
> load the document file supplied?
>
> On the Macintosh Common Lisp this was done easily with a little
> function (launch-application "application name" "file") that I'm
> missing...
>
> I know that LispWorks has the capability to communicate with other
> programs, but I have to admit that the documentation appears much
> too complicated for a person without a deeper knowledge on Windows
> internals.
>
> Any hints to the right direction would be helpful.

On Windows there's SHELL-OPEN:

  (capi-win32-lib:shell-open nil "/bla/foo.doc")

will open the document with Microsoft Word.  Obviously, this only
works with the application that opens this document type by default.

HTH,
Edi.


Re: Launching application with a document

Cool! I will experiment with that.

Pekka

At 21:10 25.11.2005, you wrote:
>On Fri, 25 Nov 2005 19:21:16 +0200, Pekka Tolonen 
><pekka.tolonen@welho.com> wrote:
>
> > Hi, does anybody know how to launch an application so that it will
> > load the document file supplied?
> >
> > On the Macintosh Common Lisp this was done easily with a little
> > function (launch-application "application name" "file") that I'm
> > missing...
> >
> > I know that LispWorks has the capability to communicate with other
> > programs, but I have to admit that the documentation appears much
> > too complicated for a person without a deeper knowledge on Windows
> > internals.
> >
> > Any hints to the right direction would be helpful.
>
>On Windows there's SHELL-OPEN:
>
>   (capi-win32-lib:shell-open nil "/bla/foo.doc")
>
>will open the document with Microsoft Word.  Obviously, this only
>works with the application that opens this document type by default.
>
>HTH,
>Edi.


Re: LW 4.4.6 Personal+OSX+ init file?

On Sat, 26 Nov 2005 14:34:20 +0000, Jean-François Brouillet <verec@mac.com> wrote:

> What am I doing wrong?

Nothing.  The Personal Edition doesn't load init files.  See the
fourth "limitation" here:

  <http://www.lispworks.com/downloads/index.html>

However, Bill Clementson describes a workaround in his blog:

  <http://bc.tech.coop/blog/050831.html>
  <http://bc.tech.coop/blog/041219.html>

FWIW, he also posted a similar technique for Windows some time ago.

Cheers,
Edi.


Updated at: 2020-12-10 08:49 UTC