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"
		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.

Share this post

Link to post

I know this is an old topic, but since moving to 10.12 this no longer works for me.

It opens a New Tab, but puts the query in the existing tab first

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...