Ovito from command line on macOS


Ovito is a visualization tool for atomistic configurations and simulation results.

When I open a file from command line, I had to directly call ovito in /Applications/ Since it is cumbersome to type this everytime I open Ovito, firstly I made its link to the directory where my PATH environment can find. But unfortunately and I don’t know the reason why, it did not work for Ovito.

So I created a script ~/bin/ovito,



if [ $# -eq 0 ]; then
    echo "You need at least one argument..."
    exit 0

$ovito $@

Now I can call ovito from command line as,

$ ovito some-file-to-open