launch doc with app

Geir A. Myrestrand geir.myrestrand at
Fri Dec 15 10:53:48 EST 2006

jbv wrote:
> Hi list,
> Is there a quick way to locate (from a Rev stack on a CD-Rom
> for instance) an application on a end-user HD (Acrobat Reader
> for instance) and to launch a pdf file on the CD-Rom with the
> app on the HD ?
> Thanks,
> JB

You probably want to load the document with the application that is 
currently assigned to handle this type of documents.

On Windows:

	start <document>



On Linux with KDE:

	kfmclient exec <document>

This starts the appropriate KDE application for the <document>'s MIME 
type.  This follows the settings for that MIME-type in the KDE file 
associations config module.

If you need it to open on a particular display, then pre-pend DISPLAY=:0 
  for example.

Replace <document> above with the path to the document you want to 
launch with the associated viewer.

Use whatever mechanism Revolution provides to launch external commands.

Do not under any circumstances assume that Adobe Acrobat or Adobe Reader 
is used to view the PDF files.


Geir A. Myrestrand

More information about the Use-livecode mailing list