add scripts for mac os

add scripts for mac os