comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Associate file type with IDL procedure?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Associate file type with IDL procedure? [message #22578] Fri, 24 November 2000 00:00
ngls is currently offline  ngls
Messages: 10
Registered: November 2000
Junior Member
Under windows (at least) you can create a stand-alone version of your program
by saving it as a .sav file (see David's excellent web site:
http://www.dfanning.com/tips/idl_icon.html) although I don't think this will
help you much passing the filename into the code.

I'd like to think there was a better way, but you could associate the file
extension (.b00) with a DOS-script (or perl script or whatever you like to
use). Have the script create a tiny IDL batch file with the clicked-filename
written in it, e.g.

custard_load, "run_me.b00"

save this batch file to the disc (as startup_batch.pro, say), and then have
the script open IDL with the command line option for a startup file:

idlde -startupfile "C:\startup_batch.pro"

Not very elegant mind, but it might do the trick.

Justin


osmith@dera.gov.uk (Oliver Smith) wrote in <8vjhke$ln8$1@trog.dera.gov.uk>:

> It would be really useful to be able to associate the data
> file extension (eg .b00) with my program. Double clicking the file in
> explorer would launch IDL and compile, then run, the main procedure
> (custard.pro), with a command line variable containing the data filename.
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: structures, driving me crazy
Next Topic: Square Brackets vs. Parentheses

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:52:17 PDT 2025

Total time taken to generate the page: 0.00511 seconds