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.
I am using TextMate on my mac, and I have the same problem with local macros described in this thread because of the temporary file issue. In my TextMate Stata bundle (i.e., program settings), I set the temp file to be created in /Code/Stata. So every time I send a selection of code to Stata, the command in Stata is preceded by:
. do "/Code/Stata/textmatetostata.do"
In my do files, I always specify the location of my data as follows:
global rawdata "/Code/Stata/Projects/[insert project name]/Data/Raw/"
global cleandata "/Code/Stata/Projects/[insert project name]/Data/Clean"
I don't have any problems sending the entire file to Stata. Just selections. Local macros are undefined. Is there a way to get around this problem?