Jump to content

Open new Terminal tabs instead of windows


Recommended Posts

If you want that Alfred opens new Terminal tabs instead of windows (for "Open Terminal Here" and ">"), then do this:

  1. Open Alfred Preferences,
  2. Go to "Features"
  3. Go to "Terminal / Shell"
  4. Select Application "Custom"
  5. Paste this script into the textbox:
on alfred_script(q)
	tell application "Terminal"
		activate
		tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
		do script q in front window
	end tell
end alfred_script

Maybe it's usefull for some of you.

Link to comment
  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...