comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: file directory
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: file directory [message #26448] Fri, 24 August 2001 11:18
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
David Fanning wrote:

> Ditch the Mac. :-)

Careful, now! I have this working perfectly fine on my Mac.
Although, using a PC is not nearly as impossible as some think. I just
made my PC almost as stable as the Mac. All it took is downloading 40 Mb
worth of video drivers, DirectXs and capture drivers :-(

Cheers,
Pavel
Re: file directory [message #26456 is a reply to message #26448] Fri, 24 August 2001 02:44 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
David Fanning wrote:
>
> Harry Kao (yen@dolphin.upenn.edu) writes:
>>
>> I used widget programming to open files for processing and then save the
>> processed files. The problem is IDL puts me in a default directoy every
>> time I want to open or save files. How do I set up IDL so that I can
>> automatically return to the directory from where I performed last I/O?
>
> Ditch the Mac. :-)
>
> If you *have* ditched the Mac, and you are working
> on a PC, someone is having fun with you. (I'd suspect
> your office mate.) Find the General tab on the
> File->Preferences menu and de-select the Change
> Directory on Open checkbox.

I believe this belongs only to pro files which
are loaded into the idlde editor.

I am using get_path from dialog_pickfile and an environment variable
defined by the procedure.

Sometimes I like to start again the widget and then the last path
is stored in the environment.

regards
Reimar

>
> If you are running on Unix, something is very, very
> weird.
>
> Best Regards,
>
> David
>
> P.S. Let's just say you could always learn the nuances
> of the CD command and its keywords, if worst comes to worst.
>
> --
> David W. Fanning, Ph.D.
> Fanning Software Consulting
> Phone: 970-221-0438, E-mail: david@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
============================================================ ======

read something about linux / windows
http://www.suse.de/de/news/hotnews/MS.html
Re: file directory [message #26462 is a reply to message #26456] Thu, 23 August 2001 13:18 Go to previous message
Steve Hartmann is currently offline  Steve Hartmann
Messages: 21
Registered: March 2000
Junior Member
> Harry Kao (yen@dolphin.upenn.edu) writes:
>>
>> I used widget programming to open files for processing and then save the
>> processed files. The problem is IDL puts me in a default directoy every
>> time I want to open or save files. How do I set up IDL so that I can
>> automatically return to the directory from where I performed last I/O?
>
> Ditch the Mac. :-)
>
> If you *have* ditched the Mac, and you are working
> on a PC, someone is having fun with you. (I'd suspect
> your office mate.) Find the General tab on the
> File->Preferences menu and de-select the Change
> Directory on Open checkbox.
>
> If you are running on Unix, something is very, very
> weird.
>
> Best Regards,
>
> David
>
> P.S. Let's just say you could always learn the nuances
> of the CD command and its keywords, if worst comes to worst.


Why not just force Dialog_PickFile to do what you want?
Something like this:

------------------------------------------------------------ --------------
;initial directory (optional)
CurrentPath = 'D:\myfiles'

;open a file
filename = Dialog_Pickfile(Path=CurrentPath , $
Get_Path=CurrentPath , /Read)

;process the file here

;save the file
filename = Dialog_Pickfile(Path=CurrentPath , $
Get_Path=CurrentPath , /Write)
------------------------------------------------------------ ----------------

Now every time you open or save a new file, the directory chosen from
the last I/O will be used. This should be platform independent as
well. At least it has been for me on both Unix and Windows.

-Steve
Re: file directory [message #26464 is a reply to message #26462] Thu, 23 August 2001 13:02 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Harry Kao (yen@dolphin.upenn.edu) writes:
>
> I used widget programming to open files for processing and then save the
> processed files. The problem is IDL puts me in a default directoy every
> time I want to open or save files. How do I set up IDL so that I can
> automatically return to the directory from where I performed last I/O?

Ditch the Mac. :-)

If you *have* ditched the Mac, and you are working
on a PC, someone is having fun with you. (I'd suspect
your office mate.) Find the General tab on the
File->Preferences menu and de-select the Change
Directory on Open checkbox.

If you are running on Unix, something is very, very
weird.

Best Regards,

David

P.S. Let's just say you could always learn the nuances
of the CD command and its keywords, if worst comes to worst.

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: smoothing an animation that calls xinteranimate
Next Topic: Re: smoothing an animation that calls xinteranimate

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:38:22 PDT 2025

Total time taken to generate the page: 0.00654 seconds