Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6368017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:37:20+00:00 2026-05-25T00:37:20+00:00

Is it possible to open a new tab in Mac OS X’s terminal from

  • 0

Is it possible to open a new tab in Mac OS X’s terminal from the command line in a currently opened tab?

I know that the keyboard shortcut to open a new tab in Terminal is “CMD+t” but I am looking for a script-based solution executed in the command line.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:37:21+00:00Added an answer on May 25, 2026 at 12:37 am

    Try this:

    osascript -e 'tell application "Terminal" to activate' \
      -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' \
      -e 'tell application "Terminal" to do script "echo hello" in selected tab of the front window'
    

    But if you need to run dynamic command, set myCommand variable, and replace last line with:

    -e "tell application \"Terminal\" to do script \"${myCommand};\" in selected tab of the front window";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to open a terminal window with 3 tabs. Each tab should
I know its possible to open an app from mobile safari using custom URL
Is it possible to force links to open in a new window/tab using javascript
Possible Duplicate: Opening url in new tab while i am doing window.open(), my page
is it possible to create a link that when clicked would open a new
Is it possible to open a new tab in Firefox (in background) using window.open(http://www.google.com)
Possible Duplicate: Open URL in new Safari tab with AppleScript How do I tell
Is it possible to enable the Open In New Tab context menu item in
Is it possible in Javascript to open a popup in a new tab of
I'm just wondering if it would be possible to open new browser window/tab inside

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.