Re: Making SAV files [message #24292] |
Fri, 23 March 2001 17:45  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
"Pavel A. Romashkin" <pavel.romashkin@noaa.gov> writes:
> Hi,
>
> When I make a .sav file, is there a way to specify the command that will
> be executed when the file is double-clicked on? What I have now, is IDL
> tries to execute the following when I double-click on a .sav file:
>
> RESTORE, Filename & Filename
>
> which results in error in 95% of the cases. However, it would be very
> useful to be able to do, lets say:
>
> RESTORE, Filename & Related_pro, Filename
>
> But how to specify this Related_pro?
I'm going to pull a David here and ask why you are trying to fight the
flow. The behavior of IDL from at least version 4 (!) has been to
associate a save filename containing compiled routines with a
procedure of the same name. I know that people have requested a way
to pass command line arguments, and that is a legitimate request. But
otherwise, why not just do like the Romans do?
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|
Re: Making SAV files [message #24364 is a reply to message #24292] |
Mon, 26 March 2001 10:37  |
Pavel A. Romashkin
Messages: 531 Registered: November 2000
|
Senior Member |
|
|
Simply because I am *not* asking to call another command when restoring
a file with routines. I'd like to do that when restoring a file with
variables, and call a routine on that newly restored variable.
Cheers,
Pavel
Craig Markwardt wrote:
>
> "Pavel A. Romashkin" <pavel.romashkin@noaa.gov> writes:
>
> I'm going to pull a David here and ask why you are trying to fight the
> flow. The behavior of IDL from at least version 4 (!) has been to
> associate a save filename containing compiled routines with a
> procedure of the same name. I know that people have requested a way
> to pass command line arguments, and that is a legitimate request. But
> otherwise, why not just do like the Romans do?
>
> Craig
>
> --
> ------------------------------------------------------------ --------------
> Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
> Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
> ------------------------------------------------------------ --------------
|
|
|