I’m so sorry to have left you unattended. Our forums’ email sender was broken for a day or two, and I did not receive notification of your continued feedback.
I am certain that your command-line goal can be met. It is just a matter of finding the right mix of bash script commands and osascript syntax.
Here is something else you can try:
Type all of these commands one at a time in Terminal:
chmod 0755 ~/raise_superlab.sh
echo “sleep .3” >> ~/raise_superlab.sh
echo "osascript -e ‘tell application “SuperLab 4.5”’ -e ‘activate’ -e ‘end tell’ " >> ~/raise_superlab.sh
echo “” >> ~/raise_superlab.sh
I recommend that you copy and paste them one at a time.
What those commands do is create a very short script file. Once the file is created according to those commands, then you do not need to ever repeat those commands again. In other words, those commands are a one-time-only preparation step.
After that preparation is complete, then the new command that you should try to use for launching the experiment will look like this:
/Applications/SuperLab\ 4.5.app/Contents/MacOS/SuperLab\ 4.5 --nosplash -r -q -e “/full/absolute/path/to/experiment.sl4” -o “/full/absolute/path/to/savefile” -n participant -g “Main Group” & ~/raise_superlab.sh
(Note: this thread has now spilled over onto page two.)