Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» MacOSX - forked.net   » Requests   » clone terminal app

UBBFriend: Email this page to someone!    
Author Topic: clone terminal app
russ
Junior Member
Member # 297

posted January 24, 2002 01:08 PM      Profile for russ   Email russ   Send New Private Message      Edit/Delete Post  Reply With Quote 
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).
Posts: 2 | From: Mtn View, cal | Registered: Jan 2002  |  IP: Logged
willy wonka
Member
Member # 32

posted January 25, 2002 07:01 AM      Profile for willy wonka   Author's Homepage        Edit/Delete Post  Reply With Quote 
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


Posts: 92 | Registered: Aug 2001  |  IP: Logged
The_Librarian
Junior Member
Member # 294

posted March 06, 2002 07:40 AM      Profile for The_Librarian   Email The_Librarian   Send New Private Message      Edit/Delete Post  Reply With Quote 
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


Posts: 2 | Registered: Jan 2002  |  IP: Logged

All times are Pacific Time  

Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Hop To:

Contact Us | macosx.forked.net

Powered by Infopop Corporation
Ultimate Bulletin BoardTM 6.1.0.2