|
#1
| |||
| |||
| Starting Terminal from CLI Greetings - I run OpenMenu so that I can get a pop-up menu when I right-click anywhere in the background. It allows me to start applications quickly and easily; very X11-ish. From that menu, I run scripts that pop open xterms that ssh to other hosts. I'd like to use another terminal app, like the one included with OS X. I can't figure out how to open Terminal from the CLI. Is it possible? I know the 'open' command will do it, but it'll only open the first one. I need a way, from the CLI, to open new Terminal windows and automatically run commands within them. Is it possible to do this? Thanks! jas |
|
#2
| ||||
| ||||
| Jas, You can open terminal by running the command (not surprisingly): Code: open /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal Code: tell application "Terminal" do script "command" end tell Code: osascript scriptname Graham
__________________ Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread! |
|
#3
| |||
| |||
| Graham - Quote:
Thanks! jas |
|
#4
| ||||
| ||||
| You are correct that would only open the first window, but the subsequent commands I gave you will open a new window for each time you run them. If you run Code: do script "" Hopefully the helps, graham
__________________ Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread! |
|
#5
| |||
| |||
| Quote:
jas |
|
#6
| |||
| |||
| OK, follow-up question. I've whipped up a few AppleScripts to do exactly what I want, and they work great. Now: can I use the same scripts the set the title of each individual Terminal.app window? For instance, I tried this in the script I use to just open a new Terminal (no command) Code: tell application "Terminal" do script "" set title of window to "test" end tell Thanks. jas |
![]() |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help Starting up | MLE | Mac OS X System & Mac Software | 1 | December 1st, 2005 04:05 PM |
| Mac Not Starting | zoombee101 | Hardware & Peripherals | 1 | September 22nd, 2005 08:08 PM |
| Starting finder window from Terminal | Ripcord | Mac OS X System & Mac Software | 2 | June 22nd, 2003 06:57 PM |
| Starting off | Paul C | Software Programming & Web Scripting | 4 | February 2nd, 2003 12:17 AM |
| Just starting | Androo | Design & Media | 7 | January 7th, 2003 11:38 PM |