first version of osx script