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 
Switch to threaded view of this topic Create a new topic Submit Reply
Another Nit Needs Fixing [message #57660] Wed, 19 December 2007 10:58 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

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?

Cheers,

David
--
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.")
Re: Another Nit Needs Fixing [message #57730 is a reply to message #57660] Fri, 21 December 2007 08:56 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
mgalloy@gmail.com writes:

> I think it is called just IDL_START_DIR now (for all platforms).

Ah, good. Thanks!

I am slowing getting more comfortable with this. I'm still
going back and forth on how to handle the PATH issues, but
I'm slowly getting to a setup that I think works for me.
A sort of hybrid system between managing paths myself, and
letting IDL manage them for me.

Cheers,

David
--
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.")
Re: Another Nit Needs Fixing [message #57731 is a reply to message #57660] Fri, 21 December 2007 08:41 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Dec 21, 6:36 am, David Fanning <n...@dfanning.com> wrote:
> Spon writes:
>> Setting IDL_WDE_START_DIR lets you to specify a more
>> useful location.
>> Committed changes take effect immediately. The default value is the
>> user's home directory."
>
>> At least ITT agree with you, David :-)
>
> This is reassuring. :-)
>
> But, alas, I don't think this preference is still available
> in IDL 7. I have gone though all the IDL 7 preference files
> I could find, and have not run across such a thing. Also,
> HELP, /PREFERENCES doesn't list it.

I think it is called just IDL_START_DIR now (for all platforms).

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
Re: Another Nit Needs Fixing [message #57733 is a reply to message #57660] Fri, 21 December 2007 05:36 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Spon writes:

> I found this in the v6.5 helpfiles and it made me smile:
> "The IDL_WDE_START_DIR preference, if not set to a null string (''),
> specifies the initial working directory to be established when IDL
> starts. When you start IDL from the Windows Start menu or by clicking
> on a desktop icon, the initial working directory provided by the
> Windows operating system is usually a system location of no interest
> to IDL users. Setting IDL_WDE_START_DIR lets you to specify a more
> useful location.
> Committed changes take effect immediately. The default value is the
> user's home directory."
>
> At least ITT agree with you, David :-)

This is reassuring. :-)

But, alas, I don't think this preference is still available
in IDL 7. I have gone though all the IDL 7 preference files
I could find, and have not run across such a thing. Also,
HELP, /PREFERENCES doesn't list it.

It *is* true, however, that doing a CD to a particular
directory on startup will change the location where
DIALOG_PICKFILE opens. If I could determine the IDL
Workspace programmatically, then I could probably force
IDL to do what I want it to do. At the very least, I
can hardcode my default workspace.

Thanks,

David
--
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.")
Re: Another Nit Needs Fixing [message #57734 is a reply to message #57660] Fri, 21 December 2007 03:29 Go to previous message
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
I found this in the v6.5 helpfiles and it made me smile:
"The IDL_WDE_START_DIR preference, if not set to a null string (''),
specifies the initial working directory to be established when IDL
starts. When you start IDL from the Windows Start menu or by clicking
on a desktop icon, the initial working directory provided by the
Windows operating system is usually a system location of no interest
to IDL users. Setting IDL_WDE_START_DIR lets you to specify a more
useful location.
Committed changes take effect immediately. The default value is the
user's home directory."

At least ITT agree with you, David :-)

Happy holidays,
Chris
Re: Another Nit Needs Fixing [message #57735 is a reply to message #57660] Fri, 21 December 2007 03:03 Go 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
Re: Another Nit Needs Fixing [message #57742 is a reply to message #57660] Thu, 20 December 2007 16:05 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 17:14:14 PDT 2025

Total time taken to generate the page: 0.00723 seconds