The Mac should not go to sleep if music is being played from the main hard drive (though I have a vague impression that it has happened once or twice).
I'm not exactly sure what stops a Mac from sleeping. Certainly any keyboard or mouse activity will prevent sleep. I think activity on the main hard drive will prevent it. I'm not quite sure about external hard drive activity, and I rather think that AlienBBC (which doesn't touch the hard drive) will not prevent sleep. Anyway, the way to use Jiggler is to use the Execute Script plugin with suitable scripts (the plugin isn't totally intuitive to set up). The scripts need to be shell scripts, not Applescript, but an Applescript can be run from within an shell script. You can create a suitable script using any text editor (make sure you use Unix line endings), but must make it executable via the Terminal. The scripts I use are Jiggle: #!/bin/bash osascript -e 'tell application "Jiggler" to activate' -e 'quit application "Terminal" saving no' and Unjiggle: #!/bin/bash osascript -e 'quit application "Jiggler"' -e 'quit application "Terminal" saving no' Jiggle runs on Play or Open File, Unjiggle on Stop or Power Off. I also use, with a different plugin (which is slightly more convenient if one has only one script to run), the following script to put the computer to sleep Sleeper: #!/bin/bash osascript -e 'delay 1' -e 'quit application "Terminal" saving no' -e 'tell application "System Events" to sleep' Roughly speaking, osascript -e means treat the bit between the two occurrences of ' as an Applescript the second -e is needed for the next line of the Applescript IIRC. You can also use a bunch of lines beginning with osascript -e and you could call by name an Applescript that has been saved as a file, which is better if the script is more than one or two lines. -- danco ------------------------------------------------------------------------ danco's Profile: http://forums.slimdevices.com/member.php?userid=210 View this thread: http://forums.slimdevices.com/showthread.php?t=40906 _______________________________________________ discuss mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/discuss
