Bandwidth sleeper was not available when I checked. Here is the script I
use for Jiggler, which can be changed for other programs. I am trying to
find out what is needed for Caffeine, which works differently.

#!/bin/bash
osascript  -e 'tell application "Jiggler" to activate' -e 'quit
application "Terminal" saving no'

Notes.
1. The script consists of two lines, one beginning with #!, the other
with osascript (the forum might split the second line over two). Note
the differences between ' and ", and make sure your text editor does
not make these into curly quotes.

2. Make sure to use a text editor that accepts Unix line endings - many
do, but a few use the older ending (Unix ends with Line Feed, which
modern Macs accept, but old programs end lines with Carriage Return).

3. The script gets put in the Scripts folder in the SlimDevices (or
SqueezeCenter) folder in your Library.

4. Set it (using Get Info) to open in Terminal.

5. It has to be made executable, which requires use of Terminal. Open
Terminal and type

chmod a+x
followed by a space
and then drag the file into the Terminal window (a clever Mac trick;
this provides the full path to the file without you having to type it
in).
Press Return, and the file is executable, and can be run by the Execute
Script plugin.

To turn Jiggler off, the script is

#!/bin/bash
osascript -e 'quit application "Jiggler"' -e 'quit application
"Terminal" saving no'

I can explain what is going on if anyone wants more details.


-- 
danco
------------------------------------------------------------------------
danco's Profile: http://forums.slimdevices.com/member.php?userid=210
View this thread: http://forums.slimdevices.com/showthread.php?t=42945

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to