I have used Unix/Linux for many years, recently on Mac hardware using VMWare to run Ubuntu. I am trying to make the switch to using the Mac OS "directly". I've got VIM working, my .bash_profile shell environment loading properly, command completion, command history editing using VI working, and so on. So far, so good.
One of the things I have done under Unix/Linux for years is have a script that opens several terminal windows of particular sizes at particular locations on a display. (I tend to work with VIM and other command line tools.) I would like to do the same in Mac OS.
I can see how to set up a "Terminal" with a particular name using the Mac OS GUI to have a certain number of rows, but what I want to do is have a script, (I assume it has to be an Applescript), that opens up several windows of different sizes at different locations.
I just don't see how you pass command line parameters to the "Terminal" application like you would with Gnome Shell, for example. For example, I have a bash script named "setupTerms2560x1600" which I will run when I have a 2560x1600 display to create a bunch of terminals of different sizes and different locations:
gnome-terminal --geometry=80x42+1+23 &
gnome-terminal --geometry=80x42+1901+23 &
gnome-terminal --geometry=80x42+1+800 &
gnome-terminal --geometry=80x42+1901+800 &
gnome-terminal --geometry=80x85+276+23 &
gnome-terminal --geometry=80x85+1000+23 &
gnome-terminal --geometry=80x85+1724+23 &
Am I trying to do something that Mac OS, or the Terminal application does not want me to do?
Should I install some other sort of Terminal application that is more Linux like? I tried out iTerm.
Is the verbose Applescript way of doing things the only way to set parameters of an application you are starting? For example, in the iTerm application help I see example Applescript like this:
-- reposition window and name it
set the bounds of the first window to {100, 100, 700, 700}
set the name of the first window to "A Window Title"
To me, it seems like I have to run the Applescript editor application to figure out what parameters I can set on an application.
And, in general, where I can search for these sorts of answers? (Besides this forum.) For example, I assume there are forums that ex-Windows programmers like to use because they can ask questions that make sense to people who are coming from a Windows background. I'm coming from a Unix/Linux background. Is there an applicable forum for us?
Thanks for any specific or general help.
One of the things I have done under Unix/Linux for years is have a script that opens several terminal windows of particular sizes at particular locations on a display. (I tend to work with VIM and other command line tools.) I would like to do the same in Mac OS.
I can see how to set up a "Terminal" with a particular name using the Mac OS GUI to have a certain number of rows, but what I want to do is have a script, (I assume it has to be an Applescript), that opens up several windows of different sizes at different locations.
I just don't see how you pass command line parameters to the "Terminal" application like you would with Gnome Shell, for example. For example, I have a bash script named "setupTerms2560x1600" which I will run when I have a 2560x1600 display to create a bunch of terminals of different sizes and different locations:
gnome-terminal --geometry=80x42+1+23 &
gnome-terminal --geometry=80x42+1901+23 &
gnome-terminal --geometry=80x42+1+800 &
gnome-terminal --geometry=80x42+1901+800 &
gnome-terminal --geometry=80x85+276+23 &
gnome-terminal --geometry=80x85+1000+23 &
gnome-terminal --geometry=80x85+1724+23 &
Am I trying to do something that Mac OS, or the Terminal application does not want me to do?
Should I install some other sort of Terminal application that is more Linux like? I tried out iTerm.
Is the verbose Applescript way of doing things the only way to set parameters of an application you are starting? For example, in the iTerm application help I see example Applescript like this:
-- reposition window and name it
set the bounds of the first window to {100, 100, 700, 700}
set the name of the first window to "A Window Title"
To me, it seems like I have to run the Applescript editor application to figure out what parameters I can set on an application.
And, in general, where I can search for these sorts of answers? (Besides this forum.) For example, I assume there are forums that ex-Windows programmers like to use because they can ask questions that make sense to people who are coming from a Windows background. I'm coming from a Unix/Linux background. Is there an applicable forum for us?
Thanks for any specific or general help.