• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
launching cml without duplicating Terminal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

launching cml without duplicating Terminal


  • Subject: launching cml without duplicating Terminal
  • From: Jake <email@hidden>
  • Date: Wed, 12 Dec 2001 09:22:41 -0500 (EST)

While the following worked fine launching the program. However if terminal
is already open, it will open another copy(separate icon in the dock) and
run the program. There is no man page for Terminal. So how does one open a
commanline process without launching an additional copy Terminal if one is
already running?


NSArray *arg;
arg = [NSArray arrayWithObject:@"/usr/bin/top"];
[NSTask launchedTaskWithLaunchPath:
@"/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal"
arguments:arg];

thanks. jake


  • Follow-Ups:
    • Re: launching cml without duplicating Terminal
      • From: Alex Keresztes <email@hidden>
References: 
 >Re: ??? (sorry, couldn't find the thread) (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: ??? (sorry, couldn't find the thread)
  • Next by Date: Re: Re: Status Bar
  • Previous by thread: Re: ??? (sorry, couldn't find the thread)
  • Next by thread: Re: launching cml without duplicating Terminal
  • Index(es):
    • Date
    • Thread