Pedro Rodriguez

Results 67 comments of Pedro Rodriguez

@jacobbridges I (actively) maintain another library for functional programming (https://github.com/EntilZha/ScalaFunctional), and like `fn.py`. I might be interested in helping out, but I would need to learn the code base better....

Aside from ControlPlane, is there any terminal/shell way to do it? I imagine there is a fragile way to do it with applescript. Before finding ControlPlane I had a shell...

I am trying to update/modify this script: http://stackoverflow.com/questions/2704889/how-to-start-stop-internet-sharing-using-apple-script. Never used apple script before so its slow going with debugging though

This works to turn it on/off: ``` applescript tell application "System Preferences" activate reveal (pane id "com.apple.preferences.sharing") end tell tell application "System Events" to tell process "System Preferences" delay 2...

Been using that for a couple days as an Alfred workflow I run when I get to home/work. Works fairly well, its annoying that it actually opens the interface, but...

So in theory, it would be possible to run a shell script which itself runs the Applescript? The downside of this is that a GUI would be brought up without...

@dustinrue, is there anyway to do something low levelish like trace the system calls that the preferences application does while turning sharing on/off?

Does the interface creation method described [here](http://apple.stackexchange.com/questions/175626/start-stop-internet-sharing-via-terminal-in-yosemite-without-applescript) still work? Requires more setup, but it would work

This definitely seems like unless Apple provides a way to programmatically enable/disable internet sharing it would be hard. I gave a shot at looking at syscall but hit a brick...