Need Help With Opening Multiple Windows and Running Script

Discussion in 'Mac Programming' started by Neuhru, Jan 28, 2010.

  1. Neuhru macrumors newbie

    Joined:
    Jan 20, 2010
    #1
    Hi,

    I really like the Terminal program and especially the feature that allows you to open a Window Group (Window-->Open Window Group). Now that I have my window group saved as "Window Group 1", I would like for each window group to automatically ssh to a specific server where I can then click on each window (tab) and enter the specific password for each window. Here are the steps:

    1. Start the Terminal program
    - Manually open the program = OK

    2. Click on "Windows-->Open Window Group-->Window Group 1"
    - Manually perform this step = OK

    3. When each window in "Window Group 1" opens ssh to a specific server. For example, window 1 will SSH to server 1, window 2 will SSH to server 2, and so on.
    - Need help with this part from mac community.

    Any help in achieving #3 is greatly appreciated.

    Thanks!!

    Neuhru
     
  2. LtRammstein macrumors 6502a

    LtRammstein

    Joined:
    Jun 20, 2006
    Location:
    Denver, CO
    #2
    This sounds like a job for Applescript and Automator!

    I would recommend playing with Applescript a bit and seeing what you can do with the Terminal.app.
     

Share This Page