0
votes
0answers
24 views

Log time and battery percentage on charger disconnect

Is there any way to create an event or a script that will log the current time and battery percentage each time the charger is connected or disconnected?
0
votes
1answer
67 views

Share shell script: file permissions question

I'm on Mountain Lion 10.8.5 and recently I've made a small shell script which just shows a message on the screen. To run it, I had run chmod +x test-script.sh and then using sh ./test-script.sh ran ...
1
vote
2answers
311 views

How can I import a .terminal file using the command line?

I'm writing a (Bash) script to automate setting up my Mac environment and would like to do this, except using the command line only. I'd also like to make that theme the default. I have a .terminal ...
1
vote
1answer
345 views

Run script on networked user login

The computer lab is running 10.8. I would like to run a script when networked users login. As far as I can tell my choices are: launchd agents - Not meant for this. On the launchd.plist man page it ...
2
votes
1answer
145 views

Running actions when I disconnect external monitor

I would love to auto start Bartender (by the way, excellent app that hides some of your notification area icons) when I unplug my external monitor from my Mac. Is there any app or script that could ...
1
vote
1answer
323 views

How to detect from a script that a TimeMachine backup is running? [duplicate]

Possible Duplicate: Is there a bash command to check to see if Time Machine has finished backing up? To run some syncs to remote servers to have their data included in TimeMachine backups I ...
0
votes
1answer
332 views

Can't find/run `configure` script on mac os 10.8

I'm trying to install a program called CSIM (neural micro circuit simulator) and one of the steps is as follows: Step 2. Run: configure; make; for Linux/Unix(/Mac OS) But I can't run, not ...
0
votes
0answers
1k views

OS X 10.8 'cannot execute binary file'

I have a third-party software to preprocess my data (the data is recorded with the device of the third-party). This software was written for unix systems and runs without any problems on the following ...
6
votes
2answers
811 views

How to disable individual USB ports by script?

I am looking for a script which will allow me to disable one specific USB port on my Mac mini. It would only serve a purpose if it works in real-time and didn't require a reboot. I've found scripts ...