fgfh / macosx-nosleep-extension

Automatically exported from code.google.com/p/macosx-nosleep-extension
0 stars 0 forks source link

Does NoSleepCtrl return status code? #79

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?
run AppleScript:
set res to do shell script "/usr/local/bin/NoSleepCtrl -g -a -b" & " 2>&1"

What is the expected output? What do you see instead?
I would expect rest to hold a string with the result of NoSleepCtrl
Instead I'm getting and error message from AppleScript.
This may happen if the command doesn't return an status at all. In this case 
the output of the command is being returned as the status.

What version of the product are you using? On what operating system?
1.3.3
MBA 10.8.3

Original issue reported on code.google.com by beeryhol...@gmail.com on 12 Apr 2013 at 3:32

GoogleCodeExporter commented 8 years ago
Did you install NoSleepCtrl ? What happens when you try to run it from the 
terminal?

your shell script worked just fine for me, res was set to 
"acMode:1,batteryMode:1"

Original comment by adcur...@gmail.com on 24 Oct 2013 at 5:11