run command after opening terminal.app

Is there a way to launch terminal and run a command in it,

The goal is to run a terminal app that has complicated output, progress bars and such stuff.

Why not trigger an AppleScript via BetterTouchTool?

Replace your-command-here with the full terminal command you want to run:

tell application "Terminal"
do script "your-command-here"
activate
end tell

1 Like

You could set up a new Terminal window profile with a predefined startup command. Then have BTT launch a window with that profile.

Or like this:

tell application "Terminal"
    set currentTab to do script "your-command-here"
	activate
end tell
2 Likes