Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Re: Associate file type with IDL procedure?
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. >