Modelling script on standard catalina.sh