DEV Community

loading...

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

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 Author

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 Author

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