#For Python 3: $ python3 helloworld.py #For Python 2: $ python helloworld.py
from applescript import tell #set what command you want to run here yourCommand = 'ls' tell.app( 'Terminal', 'do script "' + yourCommand + '"')