fixd up the osa script for osx.