osacompile + string.template

* taking advantage of the template class, available in the string module
* need to compile the script, or it won't work -> using the osacompile
tool on mac