Page 1 of 1

clone terminal app

PostPosted: Thu Jan 24, 2002 9:08 pm
by russ
I just want to bring up two different-colored terminals for production work. ( one for editing, one for unix business ). I need a means to clone the terminal.app so I can start two terminals at startup ( as in X windows).

Re: clone terminal app

PostPosted: Fri Jan 25, 2002 3:01 pm
by orange1
don't think this would be doable, unless...
nope. thought maybe the terminal source was one of the example projects that came with the developers tools. problem with what you want to do is, terminal color is stored in the prefs. i suppose you could try to write a login script that will do something like
defaults write com.apple.Terminal <backgroundcolorvariable> <color>
then have it open a new terminal window [if that's something you can even do from a login script], then set the default color back.
play.

Re: clone terminal app

PostPosted: Wed Mar 06, 2002 3:40 pm
by The_Librarian
Actually there IS a way, and it's not very complicated : it simply involves a slight modification of Info.plist.
First, duplicate Terminal.app and rename it, according to its color for instance. Then open its Info.plist (Terminal2.app/Contents/Info.plist) and change the value of the CFBundleIdentifier from com.apple.Terminal to com.apple.Terminal2 (for instance). Now you have two distinct Terminal applications, with two distinct sets of preferences (one with com.apple.Terminal, the other with com.apple.Terminal2)
Actually I haven't tested this on Terminal.app but on some others apps (Net Monitor for one, and the tip comes from their webpage), and it worked quite well.
Hope this helped.

The Librarian