-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automation support for OSX #15
Comments
I do not have OS X either but I am planning to get it up and running on a virtual machine so that I can play around with the AppleScript approach. I have used Notepad++ with a Stata plugin but that SublimeText implementation looks a lot more powerful. Thanks for sharing, it is helpful to have some reference on how to implement an interaction with Stata using AppleScript and Python. It will probably save me a lot of time! |
I just hired a guy who works primarily in Python and both he and I are Mac users. If you need help with testing/development it would be useful for us as well; that said I don't think either of us work much with AppleScript but could still look into things. |
Hi @wbuchanan, I indeed would like to get a version with AppleScript done at some point. I just have a practical problem that I currently don't have a system with OS X on it which makes development difficult. I have been thinking to try and set up a virtual environment but that seems rather tedious so I have been putting it off. Having said that, some help with testing/development would be very appreciated. I will see what I can set-up to get us going but no promises. 😄 |
@drewbutcher is this something you would want to look into? Basically it provide both of us with a way of using the Jupyter integration for Stata from OSX (right now it would only work on the server that you've used before). I think the snippet that @sergiocorreia was referencing is:
From https://github.com/andrewheiss/SublimeStataEnhanced/blob/master/text_2_stata.py. I'm just starting to dust off my Python chops and am not sure how far removed something like this might be from what Drew is familiar with, but could be something useful that we could try looking into so we wouldn't have to rely on Windows machines to do any of this type of work. |
I'm wondering if this project is still under active development. As far as I can tell, there is an identical provision for all of the Windows Automation calls that can be accessed by AppleScript, and those scripts can be wrapped into Python objects using py-applescript. This means that a fairly straightforward set of classes can be written that mirror the win32com caller, bypassing the need to make a call to the shell via osascript. I think those classes can mostly be written as drop-in replacements for the existing caller, though in truth I don't fully understand the current control flow of the program.
Is it worth trying to implement this? |
@MalcolmWardlaw |
@wbuchanan |
Anyone on this thread who's interested should test out the Jupyter kernel I made for Stata today that works on Mac and Linux: https://github.com/kylebarron/stata_kernel It wraps the terminal instead of using Stata Automation, but it seems to be just as good. |
(Just a quick note, feel free to close and -wontfix- the issue)
There is a way to have Stata automation with OS X through AppleScript commands. I don't have OS X so I can't do a PR, but there is a working Python example here:
https://github.com/andrewheiss/SublimeStataEnhanced/
The text was updated successfully, but these errors were encountered: