X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Dec 2009 11:16 AM by  anon
Programmatic access to workbench project names
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
17 Dec 2009 11:16 AM
    Is there a way to access programmatically the name of an open workbench project from within IDL?  I suppose IF I wanted to let the workbench update my !PATH (which I do not) I might be able to figure it out IF the project resided in my workspace (which it may, or may not), but that seems an unsatisfying work around. I also suppose SCOPE_TRACEBACK( /STRUCTURE ) could do the trick, if a few assumptions are made, such as the routine from which it is called resides in the desired project directory. I guess what I am asking for is a utility (or utilities) that allow some access to workbench data from within IDL. Does such exist, and if not, will it?   r

    Deleted User



    New Member


    Posts:
    New Member


    --
    28 Dec 2009 05:07 PM
    Hi Moss,   Maybe you already know, but you can always access the projects folders since they are just folders, that in the Windows case they are located under the user's home folder in: C:\Documents and Settings\username\IDLWorkspace\ Could this help?. Greetings, Fernando

    Deleted User



    New Member


    Posts:
    New Member


    --
    18 Jan 2010 03:10 PM
    The trick is knowing which folder.  One cannot assume they are in the default location. You might be able to figure it out using SCOPE_TRACEBACK, but even then there is no guarantee of recovering the actual workspace name.  Obviouslr Eclipse knows what the workspace is; I'd like to see an IDL function that allows us to access that kind of internal information.   r
    You are not authorized to post a reply.