Re: file directory [message #26448] |
Fri, 24 August 2001 11:18 |
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  |
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  |
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  |
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
|
|
|