I want to run a series of independent Superlab experiments consecutively either from a shell script or from Automator (actually both). The problem is, how do I keep the screen from flashing the standard desktop between experiments?
Since I use a black background in all my experiments, I’m thinking using a nifty command line utility called “brightness” which I snagged from http://njr.sabi.net/category/computing/mac-os-x as follows:
(1) set brightness to 0
(2) start superlab in “auto-everything mode” (that is, specify the subject, group, experiment, and logfile location through the command line).
(3) wait 5 seconds. Superlab will start the experiment, which always begins with a white-on-black screen instructing the subject to press a certain button to begin.
(4) Superlab runs the experiment and exits.
(5) repeat from (1) until done.
What would be even better is if Superlab always set brightness to a specified value when it started the experiment, and returned it to its previous value when it completes the experiment.
This would also resolve a problem we have seen sometimes where OS/X fades the brightness automatically, which sometimes makes the display hard for the subject to see.