Closed alexwarofka closed 10 years ago
Yeah, this is a problem with Stata 11 and 12. If the do file doesn't open via Finder, Stata won't run it. The build file used to be like you suggested before I added 11/12 support. I toyed with using build variants for 11/12 and 13, but it would still be complicated since people would have to manually change the Stata name.
I would love to have a setting for the Stata application name (I already have a place for it in the .sublime-settings
file, but those variables unfortunately seem to only work in Python files, not in .sublime-build
files.
Pretty much as the subject says, if Stata is not set as the default application for opening .do files (e.g. Sublime Text is instead), the build system is broken as a result of the "tell Finder to open" syntax used in the AppleScript. I've fixed it on my system as below.
In
Stata.sublime-build
, the sectioncould be replaced with:
Might be a good idea to pull in the Stata application name from the settings file, but I'm not immediately sure how to do this...