[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: executing a .sav file by double clicking it.



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