Re: executing a .sav file by double clicking it. [message #12574] |
Sun, 16 August 1998 00:00 |
werner + celeste
Messages: 1 Registered: August 1998
|
Junior Member |
|
|
Thanks to all who responded! I solved my problem using
the suggestion of David Fanning.
-Thanks again
David Fanning wrote:
> Werner Hort (hortwh@matthey.com) writes:
>
>> how do I create (on a windows platform) a .sav-file that I can
> execute
>> by simply
>> double clicking it. E.g. I'd like to avoid starting up idlde. There
> are
>> a few files like
>> that in the demo-directory, but I can't figure out how to do it. I
> have
>> tried the
>> following:
>>
>> .compile widget
>> resolve_all
>> save,/routines,filename= 'wid.sav'
>>
>> This creates the desired file, however, after double clicking on it
>> idlrt starts up and
>> then exits again. What do I have to do to get my widget to start up?
>
> You need the program that runs the "widget" program above.
> Something like this:
>
> PRO JUNK
> widget
> END
>
> I put this program at the end of my "widget" program (called
> PROCESS in my example), then typed exactly these commands:
>
> .Compile PROCESS
> Resolve_All
> Save, /All, Filename='junk.sav'
>
> Viola! Click on the file JUNK.SAVE and it works like
> a charm! :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting
> E-Mail: davidf@dfanning.com
> Phone: 970-221-0438, Toll Free Book Orders: 1-888-461-0155
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
-
Attachment: vcard.vcf
(Size: 0.18KB, Downloaded 92 times)
|
|
|
Re: executing a .sav file by double clicking it. [message #12629 is a reply to message #12574] |
Tue, 11 August 1998 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Werner Hort (hortwh@matthey.com) writes:
> how do I create (on a windows platform) a .sav-file that I can execute
> by simply
> double clicking it. E.g. I'd like to avoid starting up idlde. There are
> a few files like
> that in the demo-directory, but I can't figure out how to do it. I have
> tried the
> following:
>
> .compile widget
> resolve_all
> save,/routines,filename= 'wid.sav'
>
> This creates the desired file, however, after double clicking on it
> idlrt starts up and
> then exits again. What do I have to do to get my widget to start up?
You need the program that runs the "widget" program above.
Something like this:
PRO JUNK
widget
END
I put this program at the end of my "widget" program (called
PROCESS in my example), then typed exactly these commands:
.Compile PROCESS
Resolve_All
Save, /All, Filename='junk.sav'
Viola! Click on the file JUNK.SAVE and it works like
a charm! :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: executing a .sav file by double clicking it. [message #12631 is a reply to message #12629] |
Tue, 11 August 1998 00:00  |
wonko
Messages: 22 Registered: March 1997
|
Junior Member |
|
|
hortwh@matthey.com (Werner Hort) wrote:
> how do I create (on a windows platform) a .sav-file that I can execute
> by simply double clicking it. E.g. I'd like to avoid starting up
> idlde. There are a few files like that in the demo-directory, but I
> can't figure out how to do it. I have tried the following:
>
> .compile widget
> resolve_all
> save,/routines,filename= 'wid.sav'
>
> This creates the desired file, however, after double clicking on it
> idlrt starts up and then exits again. What do I have to do to get my
> widget to start up?
I think you need a procedure MAIN in your program, which idlrt then
executes.
Alex
--
Alex Schuster Wonko@weird.cologne.de PGP Key available
alex@pet.mpin-koeln.mpg.de
|
|
|
Re: executing a .sav file by double clicking it. [message #12632 is a reply to message #12629] |
Tue, 11 August 1998 00:00  |
seanr
Messages: 10 Registered: August 1998
|
Junior Member |
|
|
In article <35D073B6.531C36F4@matthey.com>,
hortwh@matthey.com wrote:
> Hi everyone,
>
> how do I create (on a windows platform) a .sav-file that I can execute
> by simply
> double clicking it. E.g. I'd like to avoid starting up idlde. There are
> a few files like
> that in the demo-directory, but I can't figure out how to do it. I have
> tried the
> following:
>
> .compile widget
> resolve_all
> save,/routines,filename= 'wid.sav'
>
> This creates the desired file, however, after double clicking on it
> idlrt starts up and
> then exits again. What do I have to do to get my widget to start up?
>
I had similar problems. What I found ot be the problem was my program did not
have everything resolved, and would do a source comfile when run on the
missing routine. The way to check this is start idlde clean, restore your
wid.sav, and run it. If you get a %compile message in the output screen, that
is your problem, and you will need to add a .compile for each one that may
come up. The reason behind this is the idlrt cannot comple .pro files.
Good luck, and let me know if this worked :)
Sean Rumelhart
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
|
|
|