On Fri, 12 May 2006 16:53:00 -0400, Ian Davies wrote:
>I find the macro opencurs.vdm a most useful (and much used)
>part of Vedit.
>
>It occurs to me to wonder if anyone has written something
>similar but extending the method to open other sorts of files
>using the same technique.
>For example it would be great if browsing a list in Vedit,
>I could "open" say a .JPG file,
>or a .PDF file, using the default application.
>...
>
>Suggestions anyone?
The key is the Windows command "start".
For example you can call "start dog.jpg" in a DOS box and the standard
application for JPGs will be used to display the file.
I'm using that for example in my HYPERTXT.VDM which can navigate
within text files or open foreign files via their application.
It should be no problem to modify/enhance/duplicate OPENCURS for that.
In fact it is already there: In case the macro isn't able to find the
browser executable it uses the "start" technique as fallback to open
the file in the browser.
I'll have to think about that...
(The OPENCURS macro seems to be an easy one but required much testing
and much more time, really!)
Christian
|
|