DEV Community

Discussion on: Apple/Mac Automator ...how do you create a shortcut to run a terminal script/code?

Collapse
 
yobretyo profile image
Bret

I saw it, but I don't know what to enter in it. I tried one but, it opens a box, not entering text when I click on the terminal

Collapse
 
damjand profile image
Damjan Dimitrov

You can write those two commands separated by a logical AND operator (&&), which will run both commands as you would like. This is how it should look like: sample

While of course firstly you may need to change the directory to where the python script is located

Thread Thread
 
yobretyo profile image
Bret

i tried the first part, but it came back as a error and said the "exe" in manage.py was a error

Thread Thread
 
yobretyo profile image
Bret

I just tried it, but it didn't do anything. I want it to enter the command into terminal when I have it open.