[TxMt] Bundle for Stata

Alan Schussman alan at schussman.com
Wed Aug 30 20:47:28 UTC 2006


On Aug 30, 2006, at 1:09 PM, Timothy Beatty wrote:

> I've put together a very basic/simple/uncomplicated/doesn't do much
> bundle for Stata, available at:
>

Hi Tim-

It's neat to see a Stata bundle in development. I used to use Stata  
regularly, but I don't actually have a copy of Stata for OS X at the  
moment, so I can't really test it out. I have just one initial  
suggestion: You might want to set the name of the Stata app through  
an environment variable like TM_STATA_NAME. Then I think you could do  
in your commands:

osascript -e "tell application \"${TM_STATA_NAME}\"
   ...

That way, users with different versions of Stata need only set the  
variable in their preferences rather than change the app's name in  
each of the "send to Stata" commands (this would make expansion of  
the bundle easier, too). It might also make sense to make the  
location of your textmatetostata.do file something like /tmp/Stata --  
that way, one's data/do file directories won't get cluttered with  
extra temporary files.

Cheers-
-Alan




More information about the textmate mailing list