Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

opensesamerun on mac / apple

I want to install my experiment on the participants' laptops.
Herefore i found a nice solution with opensesamerun.
What i do in Windows:
1. Install OS
2. Copy my experiment directly in C: (the only way to have the same path always)
3. Copy a shortcut of opensesamerun on the desktop
target: >>C:\Program Files (x86)\OpenSesame\opensesamerun.exe" "C:\ShortPath_OS\EXP_SRT.osexp" --subject=1 --logfile="C:\ShortPath_OS\Logfile\footest.csv" -f <<
Hence participant only double click on the desktop icon to run the experiment at home.

But how do i do that on a Mac? (Note: I am not a Mac User)
I installed the Mac Version of opensesame.
My idea is to install it on "Macintosh HD" as an equivalent to C:
I managed to build an "alias" shortcut on the desktop.
But i do not know how to set the experimental settings. There is no "target" field to write some text for the path names etc.

Comments

  • Hi DahmSF,

    There currently is no app version of opensesamerun for mac, but its script is included in the main application. To get it to run from the terminal you can follow the steps described below. I assume you have the OpenSesame.app located in the /Applications folder (so at the root, not in the Applications folder in your home folder, which also exists nowadays. If you store OpenSesame there, you will have to prepend the relevant path segments with your home dir to the commands I am showing below).

    It's going to be some long commands (because I am using the absolute paths such that they work from everywhere if you use automator to make scripts for instance).

    To start OpenSesame run:

    /Applications/OpenSesame.app/Contents/MacOS/Resources/bin/python /Applications/OpenSesame.app/Contents/MacOS/Resources/bin/opensesamerun
    

    You should be able to pass command line arguments like this as well, for instance

    /Applications/OpenSesame.app/Contents/MacOS/Resources/bin/python /Applications/OpenSesame.app/Contents/MacOS/Resources/bin/opensesamerun /path/to/experiment.osexp
    

    As I shortly mentioned earlier, automator is a useful program that comes with OS X for making shortcuts, or otherwise you could of course simply write a bash script.

    Good luck and let me know if this works!

  • Hi Daniel,

    I am not sure whether i understood all of your answer.
    First, yes i found opensesamerun in the /Applications folder in the bin. That's where i created the alias, which i copied on the desktop. However, when i go to properties (which are not called properties with mac), there is no target field to set the pathes (in Windows there is a target field). Actually i can set one path, but as you suggested i need to set two pathes (opensesamerun & xxx.osexp) plus the subject and the logfile.

    "There currently is no app version of opensesamerun for mac, ..."
    Does this mean there is no such a field?

    Otherwise i could of course simply write a bash script or use automator.
    Unfortunately, all this makes me sad. I was so happy that i learned the basics of python within two weeks. Now i feel like, i have not the slightest clue again.

    Stephan

  • Hi Stephan,

    If OpenSesame is located in the /Applications folder, you can simply execute the command

    /Applications/OpenSesame.app/Contents/MacOS/Resources/bin/python /Applications/OpenSesame.app/Contents/MacOS/Resources/bin/opensesamerun
    

    in the terminal and Opensesamerun should start. Can you check if this is the case on your system, before we continue with the next steps?

  • Hi Daniel,

    it tells me "no such file or directory".
    Before I get lost in apple-space, I think i am gonna use the easy way and let them start the program and run with the run button. Participants should be able to insert the subject_nr correctly, even multiple times.

    Just one more comment: When i double click on the xx.osexp file, it does not open on the Mac. It opens a new experiment. It is only possible to open the experiment file from OpenSesame directly.

  • edited October 2016

    Just one more comment: When i double click on the xx.osexp file, it does not open on the Mac. It opens a new experiment. It is only possible to open the experiment file from OpenSesame directly.

    Yes, this is a known bug, and has to do with the new way we package OpenSesame. I hope to have this solved in one of the next releases, but for now I haven't found a solution yet.

Sign In or Register to comment.