Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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 + '"') 
 
PREVIOUS NEXT
Tagged: #run #mac #terminal #python #script
ADD COMMENT
Topic
Name
8+4 =