Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: shell on Mac OS X (doc bug?)


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: Re: shell on Mac OS X (doc bug?)
Date   Thu, 27 Mar 2003 10:38:45 -0500

On Thursday, Mar 27, 2003, at 02:33 US/Eastern, Danielle wrote:

Unfortunately, the Stata commands that permit you to communicate with the
operating system (i.e., shell, xshell and winexec) are not available on the
Macintosh. Thus, in order to switch to an external editor easily from within
Stata, you must use one of the many third-party utilities that permit you to
launch an application using a particular combination of keystrokes.

I am afraid I am not tech-savvy enough to understand if this is referring to
the same capability. As I understand it, the addition to profile.do above
would enable the user to launch the selected text editor from w/in Stata.
Here, it appears this is not possible on a Mac. Have I understood this
correctly?

The texteditors document needs to be updated for a couple of changes in the Mac OS X / Stata 8 environment. It is perfectly feasible -- without AppleScript, I might add -- to give the Stata commands

. shell bbedit -c my.do

which will open bbedit and create my.do in the current working directory, then close the file and run it

.do my

One can then edit the file again with

.shell bbedit my.do

Although the help for -shell- says that the '!' is not allowed in Mac OS X, it seems to work fine. Bug in the documentation maybe?

Kit

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index