conver script for mac