Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Directory Management on a Mac


From   David Epstein <[email protected]>
To   [email protected]
Subject   Re: st: Directory Management on a Mac
Date   Tue, 11 Dec 2012 12:30:27 -0500

I found that I had checked a preference to "Start in last session's
current working directory" (perhaps that was the pre-set preference).
It would do so even if I started a session by double-clicking a
do-file. By unchecking the box, and checking the box that allows a
do-file to be run instead of edited, I'm back to the setup I had on my
PC, so I'm happy again.

One slight preference, though, would be to have the ability to *both*
run a do-file and open it in the editor, as when I'm in development
mode it's a bit of a pain to run the file and then have to navigate to
it again once it runs in the application in order to edit it.

DLE


On Fri, Dec 7, 2012 at 8:53 AM, Kerry Kammire <[email protected]> wrote:
> Steve Samuels <[email protected]> wrote:
>
>> The one item still making me hesitate is the directory issue. When I
>> double-click a do-file on a PC, it runs that file using the present
>> directory as the default, which is usually what I want. But on a Mac, I
>> still have to set the directory name from within a do-file, which means a
>> program written on one Mac won't necessarily work on another Mac if
>> they have different directory trees.
>
> If you double-click on a .do (*), .dta, or .gph file from the Finder on a
> Mac,
> Stata changes the current working directory to the directory that the file
> is
> located in.  For example, if your current working directory is your home
> directory and you double-click on a .dta file in your Documents directory,
> Stata will change the current working directory to the Documents directory.
>
> Are you saying you don't want that to happen?
>
> * Stata can open a .do file that is double-clicked in the Finder in the
> Do-file Editor if you set the preference to do so.
>
> -- Kerry Kammire, StataCorp
> [email protected]
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index