MacOS Script to Open Terminal with Multiple Tabs

Viewed 1200

I need to create a small macos script file that would automatically open a terminal with 3 tabs. Each tab should point at a different location and then run a certain command, without ending the process after that.

As an example, let's say I want to open a terminal window with 3 tabs pointing to the Downloads, Desktop and Documents folders. Each of them would them perform the ls command and then wait for further commands.

Screenshot

Any idea how to do that?

0 Answers
Related