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

Home » Public Forums » archive » Another Nit Needs Fixing
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Another Nit Needs Fixing [message #57735 is a reply to message #57660] Fri, 21 December 2007 03:03 Go to previous messageGo to previous message
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
On Dec 21, 12:05 am, David Fanning <n...@dfanning.com> wrote:
> David Fanning writes:
>> I have another nit with IDL 7 this morning, now that
>> I am writing code again. :-)
>
>> How come when I open DIALOG_PICKFILE() it always
>> starts in the david folder in Documents and Settings?
>> I'm old school, and don't use the Documents and Settings
>> folder, and my IDL installation and files are all a LONG
>> way from there.
>
>> How do I make the Workshop know to look someplace a
>> little closer to home?
>
> This is really beginning to annoy me. :-(
>
> OK, I could understand if it comes up somewhere near
> my default IDL Workspace. But why in Documents and
> Settings, which is nowhere near my IDL Workspace?
> I looked for a setting in the Registry that would set
> this, but no luck. Surely this is a configurable option.
>
> Cheers,
>
> David
>
> P.S. I did do the change directories on open thing, but
> having a random location is almost worse than have a
> certain (but lousy) location. :-(
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

David,

have you tried changing the current directory using the CD procedure?
I've no access to v7.0 today, so I can't test this, but this seems to
control where dialog_pickfile() opens if the PATH keyword is not set
on IDL6.5

Maybe run a little procedure when you open IDL that includes something
like:
Path=STRSPLIT(!PATH,';',/EXTR)
NP=N_ELEMENTS(Path)
CD, Path[NP-1]
CD, Cur=Cur & PRINT, Cur ; If you want to double-check it's worked

(this happens to be the most useful path for me, I guess you could
just definite it manually either)

Not sure how you'd work around having to run this procedure every time
you fired up IDL though :-(
There's probably a more elegant way of doing this...

Alternatively, you could figure out how to change the
IDL_WDE_START_DIR preference (if you're using Windows), but I don't
know where it resides in the v7 preferences.

Hope this helps some,
Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL 7 on Ubuntu (probably also relevant to Fedora 8)
Next Topic: Making widget applications

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

Current Time: Sat Oct 11 05:22:23 PDT 2025

Total time taken to generate the page: 0.23883 seconds