Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Stata with MacVim


From   Phil Schumm <pschumm@uchicago.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Stata with MacVim
Date   Thu, 8 Sep 2011 09:40:43 -0500

On Aug 11, 2011, at 12:06 PM, Phil Schumm wrote:
> Since you are using a different OS version (Lion versus SL) and a different version of Stata, one (or both) of these are likely the cause of the differences in behavior.  What has me concerned is your apparent observation that sending a do-file to Stata 12 via an Open File Apple Event is opening the do-file in the do-file editor, rather than executing it.  If so, this represents a change in behavior from Stata 11, and will make it impossible to execute a do-file directory from your text editor (unless Stata 12 has added to its AppleScript dictionary, or unless you want to play around with scripting via the GUI).  Once I get a copy of Stata 12 (hopefully within the next few weeks), I will take a look (you can do so too, by opening AppleScript Editor and using File -> Open Dictionary...).


Just got my copy of Stata 12 :)

There is a new setting (in Stata for OS X) under

    General Preferences... -> Do-file Editor -> Advanced

called "Edit do-files opened from the Finder in Do-file Editor."  I believe that this is checked by default.  You need to uncheck it if you want an Open File Apple Event to execute a do-file instead of opening it in the do-file editor.  Note that for those people (like myself) who use an external editor, most will have set the Finder to use that editor (rather than Stata) to open a do-file when double-clicking on it.  Thus for them, this option is essentially superfluous (but must be unchecked if you wish to use an Open File AE to execute code in Stata from your editor).


-- Phil


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index