clone terminal app

Ask us to port a specific application.

clone terminal app

Postby russ » Thu Jan 24, 2002 9:08 pm

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).
russ
 
Posts: 2
Joined: Thu Jan 24, 2002 8:00 pm
Location: Mtn View, cal

Re: clone terminal app

Postby orange1 » Fri Jan 25, 2002 3:01 pm

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.
--
-willy
Freedom will henceforth be compulsory. -Random Party Manifesto
orange1
 
Posts: 92
Joined: Tue Aug 21, 2001 7:00 pm

Re: clone terminal app

Postby The_Librarian » Wed Mar 06, 2002 3:40 pm

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
The_Librarian
 
Posts: 2
Joined: Wed Jan 23, 2002 8:00 pm


Return to Requests

Who is online

Users browsing this forum: No registered users and 41 guests

cron