[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: executing a .sav file by double clicking it.
- Subject: Re: executing a .sav file by double clicking it.
- From: werner + celeste <thehorts(at)nb.net>
- Date: Sun, 16 Aug 1998 22:53:17 GMT
- Newsgroups: comp.lang.idl-pvwave
- Organization: Slurp News Feeds
- References: <35D073B6.531C36F4@matthey.com> <MPG.103a274291fefc54989831@news.frii.com>
- Reply-To: thehorts(at)nb.net
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:11870
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/
begin: vcard
fn: werner + celeste
n: ;werner + celeste
email;internet: thehorts@nb.net
x-mozilla-cpt: ;0
x-mozilla-html: TRUE
end: vcard