how to run python program on mac code example
Example 1: how to make python open an application on mac
import os
os.system("""osascript -e 'tell app "Safari" to open'""")
Example 2: how to run mac terminal from python script
from applescript import tell
#set what command you want to run here
yourCommand = 'ls'
tell.app( 'Terminal', 'do script "' + yourCommand + '"')