Opening a new Terminal window when it's working on an additional desktop computer

I open a great deal of terminal windows. I additionally use excellent use tabs & numerous desktop computers.

Generally I release Terminal.app with Spotlight. Yet if Terminal is currently working on an additional desktop computer, it transforms to that desktop computer and also opens it there. I despise that. I desire it to open on the existing desktop computer.

So in the meantime, I've been doing this :

Is there a far better means?

0
2019-05-07 11:53:27
Source Share
Answers: 4

You can create a new solution making use of automator (from the applications folder). On top of the automator window, enter: Service obtains 'no input' in 'any kind of application'. After that, in the operations, add 'Run applescript'. Make the applescript have the following:

on run {input, parameters}

    tell application "Terminal"
        do script " "
        activate
    end tell

    return input
end run

(You can add any kind of command you such as right into the do manuscript line in between the"" (as an example something valuable to run when terminal first opens up like "uptime" if you like, or simply leave it empty).

Conserve the solution as 'Open Terminal' or whatever name you such as. It needs to currently show up in your solutions food selection.

After that if you intend to add a key-board faster way, you simply require to head to System Preferences - > Keyboard - > Keyboard Shortcuts tab, select solutions in the left hand food selection, and also locate your new solution (its possibly near all-time low). Simply click in the room to the right of your solution name, and also assign it whatever key-board faster way you such as, and also hi there presto! it needs to all function

0
2019-05-19 19:31:17
Source

You can inform the system to stop switching over spaces "automagically" based upon what App involves the foreground:

# don't switch spaces
defaults write com.apple.Dock workspaces-auto-swoosh -bool NO
killall Dock

This is a vital setup if you watch each Space as its very own work space, and also could have a Terminal window and also an internet internet browser window open in each room. If you intend to switch over spaces, you require to do so purposely and also by hand.

This amounts System Prefs > Spaces, and afterwards unchecking the "button room when switching over application" checkbox near the bottom.

0
2019-05-19 19:30:48
Source

I looked everywhere and also located no far better means myself. I generally have much less than 5 Terminal home windows open, and also I generally do not intend to switch over desktop computers for Terminal, so in System Preferences - Expose - Spaces I appointed Terminal to be in Every Space so regarding follow me around. You could despise that however.

0
2019-05-09 06:20:03
Source

By Golly, I assume I've located it this moment.

Fire up Utilities/AppleScript Editor. Copy/paste the lines listed below. Wait and also add it to your Dock. Whenever you click it you'll get a new window on your existing desktop computer. You require to have "Enable assistance for assistive tools" turned on in System Preferences - Universal Access.

tell application "Terminal" to activate
tell application "System Events"
    tell process "Terminal"
        click menu item "New Window" of menu "Shell" of menu bar 1
    end tell
end tell

Source : adjusted from this hint pertaining to Safari.

0
2019-05-09 05:49:36
Source